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 ₹1,999 ₹999 · Launch offer
Item 78 of 94 · updated 2026-10-12