guess the next step: Greedy change-making
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 13 of 20
Question 13 of 16
Step 13 of 20
Step 14 of 20
Step 15 of 20
Step 16 of 20
Step 19 of 20
Step 20 of 20
Question 13 of 16
Question 13 of 16
Right.
You guessed: A coin of 1 fits, so take it.
What the run did:
A coin of 1 fits in the 3 left, so take it. 2 left to pay.
Question 13 of 16
Not this time.
You guessed: A coin of 1 does not fit, so go on to the next smaller coin.
What the run did:
A coin of 1 fits in the 3 left, so take it. 2 left to pay.
Question 14 of 16
Question 14 of 16
Right.
You guessed: A coin of 1 fits, so take it.
What the run did:
A coin of 1 fits in the 2 left, so take it. 1 left to pay.
Question 14 of 16
Not this time.
You guessed: A coin of 1 does not fit, so go on to the next smaller coin.
What the run did:
A coin of 1 fits in the 2 left, so take it. 1 left to pay.
Question 15 of 16
Question 15 of 16
Right.
You guessed: A coin of 1 fits, so take it.
What the run did:
A coin of 1 fits in the 1 left, so take it. 0 left to pay.
Question 15 of 16
Not this time.
You guessed: A coin of 1 does not fit, so go on to the next smaller coin.
What the run did:
A coin of 1 fits in the 1 left, so take it. 0 left to pay.
Question 16 of 16
Question 16 of 16
Right.
You guessed: No way takes fewer coins than greedy did.
What the run did:
Done: no way takes fewer than greedy's 14 coins, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 and 1, so here the biggest coin first was the fewest.
That is every question on this run: 1 of 16 right.
Question 16 of 16
Not this time.
You guessed: Some way takes fewer coins than greedy did.
What the run did:
Done: no way takes fewer than greedy's 14 coins, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 and 1, so here the biggest coin first was the fewest.
That is every question on this run: 0 of 16 right.