07.04 · Problem
Vending Machine Coins
This problem is part of solulu Pro
A vending machine has unlimited coins of the given denominations. What is the fewest number of coins that make exactly amount? Return −1 if it is impossible.
Lifetime ₹2,000 ₹1,000 · Beta offer
Item 78 of 94 · updated 2026-10-12