Top-K Elements Problems
18 Top-K Elements problems on LeetCode, a Heap / Priority Queue interview pattern, ranked by importance (how often it comes up in real interviews). Difficulty (ELO) and importance shown per problem.
| # | 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 |
MORE HEAP / PRIORITY QUEUE PATTERNS
// your mastery





What's your Top-K Elements tier?
leaps.gg syncs your LeetCode history, scores your Top-K Elements mastery, and recommends exactly which problems to do next with spaced repetition. Free to start.
GET MY MASTERY MAP →