D3C0d3r's blog

By D3C0d3r, history, 22 months ago, In English

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

Full text and comments »

Tags cp
  • Vote: I like it
  • +8
  • Vote: I do not like it

By D3C0d3r, history, 22 months ago, In English

Hi everyone I'm practicing cp and always get some Special type of question where they ask to solve a question Related to array where they say u r given an array and can perform some operation like chose 2 index and do this and can repeat some number of time... I think u get the idea what I'm talking about... Can anyone tell me how to approach this kind of question since brute force always very expensive. Please I'm waiting for some lovely responses ....

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it