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 22
Question 7 of 10
Step 14 of 22
Step 15 of 22
Step 16 of 22
Step 19 of 22
Step 20 of 22
Step 21 of 22
Question 7 of 10
Question 7 of 10
Not this time.
You guessed: 30 becomes 30, smaller, so it may need to climb.
What the run did:
Change 30 to 30. It got no smaller, so it is still no smaller than anything above it, but it may need to sink.
Question 7 of 10
Right.
You guessed: 30 becomes 30, no smaller, so it may need to sink.
What the run did:
Change 30 to 30. It got no smaller, so it is still no smaller than anything above it, but it may need to sink.
Question 8 of 10
Question 8 of 10
Not this time.
You guessed: 30 swaps down.
What the run did:
Nothing is below 30, so it stays.
Question 8 of 10
Not this time.
You guessed: 30 is no bigger than anything below it, so it stays.
What the run did:
Nothing is below 30, so it stays.
Question 8 of 10
Right.
You guessed: Nothing is below 30, so it stays.
What the run did:
Nothing is below 30, so it stays.
Question 9 of 10
Question 9 of 10
Not this time.
You guessed: 45 is smaller than 30.
What the run did:
45 is not smaller than 30.
Question 9 of 10
Right.
You guessed: 45 is not smaller than 30.
What the run did:
45 is not smaller than 30.
Question 10 of 10
Question 10 of 10
Not this time.
You guessed: 30 swaps down.
What the run did:
30 is no bigger than anything below it, so it stays.
That is every question on this run: 0 of 10 right.
Question 10 of 10
Right.
You guessed: 30 is no bigger than anything below it, so it stays.
What the run did:
30 is no bigger than anything below it, so it stays.
That is every question on this run: 1 of 10 right.
Question 10 of 10
Not this time.
You guessed: Nothing is below 30, so it stays.
What the run did:
30 is no bigger than anything below it, so it stays.
That is every question on this run: 0 of 10 right.