← Problems

heaps

2 problems, easiest first. Every one is open — nothing here is locked behind the others.

0 / 2 solved

SolvedProblemTopicDifficulty
Kth Largest Elementheapsmedium
Top K Frequent Elementsheapsmedium

Then build one

These problems are one function each. A build challenge is the same ideas assembled into a working thing across several files.

Stuck on the pattern rather than the problem? The heaps lesson walks through it with an animation you can step through.