VISUALGO//SORT
heap sort · sorting trace console · O(n log n)
● HEAPIFY   ● COMPARING   ● SWAPPED   ● SORTED
Goal:Rearrange all elements in ascending order using heap sort.
6
7
2
3
4
8
5
1
ELEMENTS
READOUT
step0 / 20
comparisons0
swaps0
statusIDLE