Coin Change — 1-D DP

Find the least number of coins needed to make an exact amount from given denominations, or signal that the amount is unreachable.

1-D DP · Medium

More in 1-D DP

All algorithm problems