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 10 of 20
Question 7 of 14
Step 10 of 20
Step 11 of 20
Step 12 of 20
Step 13 of 20
Step 14 of 20
Step 15 of 20
Step 16 of 20
Step 17 of 20
Question 7 of 14
Question 7 of 14
Not this time.
You guessed: It swaps down with its bigger child.
What the run did:
18 has no children, so it stops here.
Question 7 of 14
Not this time.
You guessed: It is at least as big as its children, so it stops.
What the run did:
18 has no children, so it stops here.
Question 7 of 14
Right.
You guessed: It has no children, so it stops.
What the run did:
18 has no children, so it stops here.
Question 8 of 14
Question 8 of 14
Question 8 of 14
Not this time.
You guessed: 71 is not bigger than 35.
What the run did:
71 is bigger than 35.
Question 9 of 14
Question 9 of 14
Not this time.
You guessed: 62 is bigger than 71.
What the run did:
62 is not bigger than 71.
Question 9 of 14
Question 10 of 14
Question 10 of 14
Right.
You guessed: It swaps down with its bigger child.
What the run did:
Swap 35 down with its bigger child, 71.
Question 10 of 14
Not this time.
You guessed: It is at least as big as its children, so it stops.
What the run did:
Swap 35 down with its bigger child, 71.
Question 10 of 14
Not this time.
You guessed: It has no children, so it stops.
What the run did:
Swap 35 down with its bigger child, 71.
Question 11 of 14
Question 11 of 14
Not this time.
You guessed: 18 is bigger than 35.
What the run did:
18 is not bigger than 35.
Question 11 of 14
Question 12 of 14
Question 12 of 14
Question 12 of 14
Not this time.
You guessed: 50 is not bigger than 35.
What the run did:
50 is bigger than 35.