Skip to content
BytePatterns

Heaps

Keep the most important thing on top — without sorting the rest.

Heaps progress0 / 4
  1. Heap BasicsNot sorted — just guaranteed to know its own winner.5m
  2. Heapify and SiftOne wrong value walks a single path back into place.6m
  3. Priority QueueServe by urgency, not by who shouted first.5m
  4. Top K ElementsHold k winners and let the weakest one guard the door.6m