Jass_Manak's blog

By Jass_Manak, history, 5 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.

Full text and comments »

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

By Jass_Manak, history, 5 years ago, In English

What can be used in Java in place of ordered_set in C++?

Full text and comments »

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

By Jass_Manak, history, 6 years ago, In English

I came across a question where I have to store to pair in PriorityQueue in Java. But Java does not have anything like make_pair in C++. What can be the alternate used in Java for making a pair?

Full text and comments »

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