Блог пользователя sajalhsn13

Автор sajalhsn13, история, 6 лет назад, По-английски

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.

  • Проголосовать: нравится
  • +12
  • Проголосовать: не нравится