This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingConcept theory, tags and interview notes for Heap sort.
What this asks
Sort an array in place using a heap.
Build a max heap, then repeatedly swap the root to the end and sift the new root through the shrinking heap.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing