Skip to content

guess the next step: Heap sort

Before each step plays, guess what it does. The page then shows the step as the run takes it and says why, the same sentence the watch page says there.

Step 2 of 57

712182331425617212318423531642756
Sift 18 down: while a child is bigger, swap it with its bigger child.

Question 1 of 33

What happens next?

Your guess