10 ms·
If it works, it works. Priority queues are an extremely powerful data structure if you leverage them right. I find C++'s set and map and related data structure
by EnderShadow8 5y ago
If it works, it works. Priority queues are an extremely powerful data structure if you leverage them right.
I find C++'s set and map and related data structures are also very useful for solving cp problems.
- smcl 5y agooh yeah it goes without saying that Python dicts and sets are my AOC bread and butter :D