PROBLEMS/HEAP / PRIORITY QUEUE
Heap / Priority Queue LeetCode Problems
99 hand-tagged Heap / Priority Queue problems across 3 interview patterns (Top-K Elements, Merge K Sorted Structures, Heap Simulation), ranked by importance (how often each pattern shows up in real coding interviews). Work top-down within each pattern.
| # | PROBLEM | DIFF | ELO | IMP | PATTERNS |
|---|---|---|---|---|---|
| 1 | Top K Frequent Elements | Easy | 1280 | 91 | Frequency Counting / Hash Map Lookup · Sorting + Comparison |
| 2 | Kth Largest Element in an Array | Easy | 1356 | 91 | Sorting + Comparison |
| 3 | Kth Largest Element in a Stream | Easy | 1182 | 82 | BST Operations (Insert, Delete, Validate) |
| 4 | K Closest Points to Origin | Easy | 1214 | 82 | Sorting + Comparison |
| 5 | Maximum Subsequence Score | Hard | 2056 | 78 | Sorting-Based Greedy · Sorting + Comparison |
| # | PROBLEM | DIFF | ELO | IMP | PATTERNS |
|---|---|---|---|---|---|
| 1 | Merge k Sorted Lists | Medium | 1594 | 90 | Merge Linked Lists |
| 2 | Design Twitter | Medium | 1533 | 82 | Frequency Counting / Hash Map Lookup · Top-K Elements |
| 3 | Find K Pairs with Smallest Sums | Medium | 1598 | 71 | Top-K Elements · Sorting + Comparison |
| # | PROBLEM | DIFF | ELO | IMP | PATTERNS |
|---|---|---|---|---|---|
| 1 | Find Median from Data Stream | Medium | 1706 | 91 | Sorting + Comparison |
| 2 | Task Scheduler | Medium | 1658 | 82 | Frequency Counting / Hash Map Lookup · General Greedy (Greedy is main insight) |
| 3 | Reorganize String | Medium | 1681 | 80 | General Greedy (Greedy is main insight) · Frequency Counting / Hash Map Lookup |
| 4 | IPO | Medium | 1709 | 78 | General Greedy (Greedy is main insight) · Sorting + Comparison |
| 5 | Single-Threaded CPU | Medium | 1798 | 78 | Sorting + Comparison |
EVERY PATTERN
// your mastery





What's your Heap / Priority Queue tier?
leaps.gg syncs your LeetCode history and scores your mastery of every pattern, then recommends the exact problems to do next with spaced repetition. Free to start.
GET MY MASTERY MAP →