Parcel scans dataset, variant 45. Return the minimum number of coins needed for `amount`, or `-1` if it is impossible. Implement `solve(coins, amount)` and return the requested value.
DrawCode Practice Problem
Minimum Coins · Parcel scans 45
Interactive Visualizer Workspace
Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.
Launch Interactive Visualizer