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 1 of 8
Question 1 of 2
Step 1 of 8
Step 2 of 8
Step 7 of 8
Step 8 of 8
Question 1 of 2
Question 1 of 2
Right.
You guessed: A coin of 6 fits, so take it.
What the run did:
A coin of 6 fits in the 6 left, so take it. 0 left to pay.
Question 1 of 2
Not this time.
You guessed: A coin of 6 does not fit, so go on to the next smaller coin.
What the run did:
A coin of 6 fits in the 6 left, so take it. 0 left to pay.
Question 2 of 2
Question 2 of 2
Right.
You guessed: No way takes fewer coins than greedy did.
What the run did:
Done: no way takes fewer than greedy's one coin, 6, so here the biggest coin first was the fewest.
That is every question on this run: 1 of 2 right.
Question 2 of 2
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 one coin, 6, so here the biggest coin first was the fewest.
That is every question on this run: 0 of 2 right.