Heap / Priority Queue
Keep the min/max accessible in O(log n) for top-k and scheduling problems.
8 problems 2 Easy 5 Medium 1 Hard
Problems
Heap / Priority Queue ⏱ O(f + 10 log f) per getNewsFeed, f = followees ▦ O(total tweets + follow edges) NC150