sajalhsn13's blog

By sajalhsn13, history, 6 years ago, In English

Hello Everyone,

It was known to me that lookup time in unordered_map is faster than map in C++. When I have to lookup frequent than insertion I should use unordered_map. In this problem I used unordered_map because in my implementation lookup is more frequent than insertion. But I got TLE. In my implementation with map I got accepted. what is wrong here? Any explanation will be helpful.

Thank you.

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