Jass_Manak's blog

By Jass_Manak, history, 4 years ago, In English

I came across this problem on hacker earth contest. I was only able to think of a solution in O(n^2) time complexity. Can anyone share their approach with better time complexity.

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

| Write comment?