J_san's blog

By J_san, history, 4 months ago, In English

problem:D Most of the time i use UNORDERED MAP because it takes O(1) time, but while solving this problems, it is actually giving TLE, while on the other hand if you use ORDERED MAP which takes O(logn) time, is getting accepted.I don't know why? Can anyone please explain the reason and also how to decide in advance which to use?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it