Hacker News new | ask | show | jobs
by EnderShadow8 1626 days 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.

1 comments

oh yeah it goes without saying that Python dicts and sets are my AOC bread and butter :D