#106 Medium Time O(n·m) Space O(n) Animated

Coin Change

Find minimum number of coins to make up the amount.

LeetCode ↗
Approach: Dynamic Programming (1D)
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps