Minimum Coins for an Amount
Given coin denominations, print the fewest coins needed to make the amount, or -1 if impossible.
Constraints
1 <= n <= 12 0 <= amount <= 10^4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.