Why map works fine but unordered_map throws TLE

Правка en1, от shivanshsingh9670, 2023-03-11 06:47:48

Question

In my both solutions, i am storing the frequencies of the values in maps and then pushing in priority queue. When I use unordered_map, it throws tle. But if I use map, it is accepted. Can someone explain Why ?

Unordered_map Solution — TLE

Map Solution — Acceppted

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский shivanshsingh9670 2023-03-11 06:47:48 517 Initial revision (published)