Write a function to find the minimum number of coins needed to make a certain amount using a given set of coin denominations.
HardProblem Statement
Write a function to find the minimum number of coins needed to make a certain amount using a given set of coin denominations.
Sample Input
[1, 2, 5], 11
Sample Output
3
Limits
Time: 2s · Memory: 256 MB