How to use ordered maps in python

Правка en1, от dheemanth_1910, 2023-11-28 08:48:49

Hey all ! I've observed that using a ordered map is much better than unordered maps. (There are some cases when using a unordered map we get a TLE ) I'm using python for cp. So what would be alternative for an ordered map in python ? Thanks in advance. Try to solve this problem using ordered and unordered maps and see the difference. https://mirror.codeforces.com/contest/1899/problem/D Ps : You can't solve the problem using python dictionaries.

Теги python, hashing

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский dheemanth_1910 2023-11-28 08:48:49 493 Initial revision (published)