PlayBox

Heap Sort Visualizer

Watch how heap sort builds a max heap and repeatedly extracts the maximum element to sort the array.

Legend:

Unsorted

Comparing

Swapping

Sorted