Find the minimum number of items of given sizes that make an exact total, or return -1.
Unlock detailed company stats for this questionUpgrade
A minimum-count variant of a classic problem: make an exact total from given sizes, returning -1 if impossible. Watch for integer overflow in the DP array. Essentially Coin Change (LC 322).
Format · Asked inside the hiring manager round.
Community answers
No answers contributed by the community yet.


