Heaps
Keep the most important thing on top — without sorting the rest.
Heaps progress0 / 7
- Heap BasicsNot sorted — just guaranteed to know its own winner.5m
- Heapify and SiftOne wrong value walks a single path back into place.6m
- Priority QueueServe by urgency, not by who shouted first.5m
- Top K ElementsHold k winners and let the weakest one guard the door.6m
- K Closest PointsKeep the k best by always evicting the current worst.6m
- Reorganize a StringSpend the commonest letter first, and hold it back one round.6m
- Task SchedulerSame greedy pick, but now the loser has to sit out a cooldown.7m
Quiz yourself: 3 questions from this module
1 / 3