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 2 of 40
Question 1 of 22
Step 2 of 40
Step 3 of 40
Step 4 of 40
Step 5 of 40
Step 6 of 40
Step 7 of 40
Step 8 of 40
Step 9 of 40
Step 10 of 40
Step 11 of 40
Step 12 of 40
Step 13 of 40
Question 1 of 22
Question 1 of 22
Not this time.
You guessed: 34 is smaller than the number above it, so it climbs.
What the run did:
34 is at the top, so it stays.
Question 1 of 22
Not this time.
You guessed: 34 is not smaller than the number above it, so it stays.
What the run did:
34 is at the top, so it stays.
Question 1 of 22
Right.
You guessed: 34 is at the top, so it stays.
What the run did:
34 is at the top, so it stays.
Question 2 of 22
Question 2 of 22
Right.
You guessed: 18 is smaller than the number above it, so it climbs.
What the run did:
18 is smaller than 34, the number above it.
Question 2 of 22
Not this time.
You guessed: 18 is not smaller than the number above it, so it stays.
What the run did:
18 is smaller than 34, the number above it.
Question 2 of 22
Not this time.
You guessed: 18 is at the top, so it stays.
What the run did:
18 is smaller than 34, the number above it.
Question 3 of 22
Question 3 of 22
Not this time.
You guessed: 18 is smaller than the number above it, so it climbs.
What the run did:
18 is at the top, so it stays.
Question 3 of 22
Not this time.
You guessed: 18 is not smaller than the number above it, so it stays.
What the run did:
18 is at the top, so it stays.
Question 3 of 22
Right.
You guessed: 18 is at the top, so it stays.
What the run did:
18 is at the top, so it stays.
Question 4 of 22
Question 4 of 22
Not this time.
You guessed: 52 is smaller than the number above it, so it climbs.
What the run did:
52 is not smaller than 18, the number above it, so it stays.
Question 4 of 22
Right.
You guessed: 52 is not smaller than the number above it, so it stays.
What the run did:
52 is not smaller than 18, the number above it, so it stays.
Question 4 of 22
Not this time.
You guessed: 52 is at the top, so it stays.
What the run did:
52 is not smaller than 18, the number above it, so it stays.
Question 5 of 22
Question 5 of 22
Right.
You guessed: 27 is smaller than the number above it, so it climbs.
What the run did:
27 is smaller than 34, the number above it.
Question 5 of 22
Not this time.
You guessed: 27 is not smaller than the number above it, so it stays.
What the run did:
27 is smaller than 34, the number above it.
Question 5 of 22
Not this time.
You guessed: 27 is at the top, so it stays.
What the run did:
27 is smaller than 34, the number above it.
Question 6 of 22
Question 6 of 22
Not this time.
You guessed: 27 is smaller than the number above it, so it climbs.
What the run did:
27 is not smaller than 18, the number above it, so it stays.
Question 6 of 22
Right.
You guessed: 27 is not smaller than the number above it, so it stays.
What the run did:
27 is not smaller than 18, the number above it, so it stays.
Question 6 of 22
Not this time.
You guessed: 27 is at the top, so it stays.
What the run did:
27 is not smaller than 18, the number above it, so it stays.