Coin Change

Dynamic Programming ยท medium

Implement `coinChange(coins, amount)` returning the fewest number of coins needed to make `amount`, or `-1` if it cannot be made.

Loading...

Run your code to see results.