guess the next step: Changing a number in 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 14 of 40
Question 7 of 22
Step 14 of 40
Step 15 of 40
Step 16 of 40
Step 17 of 40
Step 18 of 40
Step 19 of 40
Step 20 of 40
Step 21 of 40
Step 22 of 40
Step 23 of 40
Step 24 of 40
Question 7 of 22
Question 7 of 22
Not this time.
You guessed: 61 is smaller than the number above it, so it climbs.
What the run did:
61 is not smaller than 27, the number above it, so it stays.
Question 7 of 22
Right.
You guessed: 61 is not smaller than the number above it, so it stays.
What the run did:
61 is not smaller than 27, the number above it, so it stays.
Question 7 of 22
Not this time.
You guessed: 61 is at the top, so it stays.
What the run did:
61 is not smaller than 27, the number above it, so it stays.
Question 8 of 22
Question 8 of 22
Right.
You guessed: 40 is smaller than the number above it, so it climbs.
What the run did:
40 is smaller than 52, the number above it.
Question 8 of 22
Not this time.
You guessed: 40 is not smaller than the number above it, so it stays.
What the run did:
40 is smaller than 52, the number above it.
Question 8 of 22
Not this time.
You guessed: 40 is at the top, so it stays.
What the run did:
40 is smaller than 52, the number above it.
Question 9 of 22
Question 9 of 22
Not this time.
You guessed: 40 is smaller than the number above it, so it climbs.
What the run did:
40 is not smaller than 18, the number above it, so it stays.
Question 9 of 22
Right.
You guessed: 40 is not smaller than the number above it, so it stays.
What the run did:
40 is not smaller than 18, the number above it, so it stays.
Question 9 of 22
Not this time.
You guessed: 40 is at the top, so it stays.
What the run did:
40 is not smaller than 18, the number above it, so it stays.
Question 10 of 22
Question 10 of 22
Right.
You guessed: 52 becomes 9, smaller, so it may need to climb.
What the run did:
Change 52 to 9. It got smaller, so it is still no bigger than anything below it, but it may need to climb.
Question 10 of 22
Not this time.
You guessed: 52 becomes 9, no smaller, so it may need to sink.
What the run did:
Change 52 to 9. It got smaller, so it is still no bigger than anything below it, but it may need to climb.
Question 11 of 22
Question 11 of 22
Right.
You guessed: 9 is smaller than the number above it, so it climbs.
What the run did:
9 is smaller than 40, the number above it.
Question 11 of 22
Not this time.
You guessed: 9 is not smaller than the number above it, so it stays.
What the run did:
9 is smaller than 40, the number above it.
Question 11 of 22
Not this time.
You guessed: 9 is at the top, so it stays.
What the run did:
9 is smaller than 40, the number above it.
Question 12 of 22
Question 12 of 22
Right.
You guessed: 9 is smaller than the number above it, so it climbs.
What the run did:
9 is smaller than 18, the number above it.
Question 12 of 22
Not this time.
You guessed: 9 is not smaller than the number above it, so it stays.
What the run did:
9 is smaller than 18, the number above it.
Question 12 of 22
Not this time.
You guessed: 9 is at the top, so it stays.
What the run did:
9 is smaller than 18, the number above it.