Sorted Output
Comparisons
0
Sift-down swaps
0
Step-by-step reasoning
See heap builds and extractions.
- Run the algorithm to populate steps.
Sorting Lab
Turn the array into a binary heap, then extract the max one node at a time. Learn how sift-down keeps the heap valid.
0
0
See heap builds and extractions.