Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Coin Change
Bookmark
Input
Example 1
Example 2 (impossible)
Example 3
Custom
amount
=
11
,
coins
=
[1, 2, 5]
coins
1
2
5
amount =
11
fewest coins that add up to 11? coins can repeat
algo
master
.
io
Step:
Fewest coins that add up to 11?
0 / 86
Input
Example 1
Example 2 (impossible)
Example 3
Custom
amount
=
11
,
coins
=
[1, 2, 5]
0 / 86
coins
1
2
5
amount =
11
fewest coins that add up to 11? coins can repeat
algo
master
.
io
Step:
Fewest coins that add up to 11?