How to approach [ almost sorted array ]

Revision en2, by D3C0d3r, 2023-01-13 19:58:47

Im sure that everyone of you have encountered with this kind of questions where they asked how much operation are needed to sort the array or how many swaps needed u get the point , can anyone tell me how to approach this kind of problems . And not only approach tell me how to approach questions in which they always ask to find some operation . please give me some resources or some blog link if possible . Thank you in advance .

lovecp4ever

Tags cp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English D3C0d3r 2023-01-13 19:58:47 5
en1 English D3C0d3r 2023-01-13 19:58:24 489 Initial revision (published)