leaps.ggTRACK YOUR MASTERY →
PROBLEMS/HEAP / PRIORITY QUEUE/TOP-K ELEMENTS

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.

#PROBLEMDIFFELOIMPPATTERNS
1Top K Frequent ElementsEasy128091
Frequency Counting / Hash Map Lookup · Sorting + Comparison
2Kth Largest Element in an ArrayEasy135691
Sorting + Comparison
3Kth Largest Element in a StreamEasy118282
BST Operations (Insert, Delete, Validate)
4K Closest Points to OriginEasy121482
Sorting + Comparison
5Maximum Subsequence ScoreHard205678
Sorting-Based Greedy · Sorting + Comparison
+ 13 more Top-K Elements problems, see all in the explorer →
MORE HEAP / PRIORITY QUEUE PATTERNS
Top-K ElementsMerge K Sorted StructuresHeap Simulation
// your mastery
Bronze tier crystalSilver tier crystalGold tier crystalPlatinum tier crystalDiamond tier crystal
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 →