Minimum Coins (Greedy Denominations)
Easy
Greedy Scheduling
Coins of values 1, 2, 5, 10, 20, 50, 100, 500 and 2000 are available in unlimited quantity. Print the minimum number of coins needed to make the amount.
Constraints
1 <= amount <= 10^6
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.