TweakCode
Optimization lessons
Loading editor…
Test casesRun to compare output
Input
amount = 5, coins = [1,2,5]
Output
—
Expected
4

More practice

Same technique, different problems. Try them without the walkthrough.