tanishq2507's blog

By tanishq2507, history, 7 months ago, In English

Link to the problem...

I have tried this approach.Try to sort the subarray closer to the last index.Shift the window towards lefts if the new element in left is smaller than all the elements in the new window but this approach fails in one case.

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