guess the next step: Building a heap
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 17 of 20
Question 13 of 14
Step 17 of 20
Step 18 of 20
Step 19 of 20
Question 13 of 14
Question 13 of 14
Right.
You guessed: It swaps down with its bigger child.
What the run did:
Swap 46 down with its bigger child, 67.
Question 13 of 14
Not this time.
You guessed: It is at least as big as its children, so it stops.
What the run did:
Swap 46 down with its bigger child, 67.
Question 13 of 14
Not this time.
You guessed: It has no children, so it stops.
What the run did:
Swap 46 down with its bigger child, 67.
Question 14 of 14
Question 14 of 14
Not this time.
You guessed: It swaps down with its bigger child.
What the run did:
46 has no children, so it stops here.
That is every question on this run: 0 of 14 right.
Question 14 of 14
Not this time.
You guessed: It is at least as big as its children, so it stops.
What the run did:
46 has no children, so it stops here.
That is every question on this run: 0 of 14 right.
Question 14 of 14
Right.
You guessed: It has no children, so it stops.
What the run did:
46 has no children, so it stops here.
That is every question on this run: 1 of 14 right.