Fetching algorithms...
coins = [1,2,5], amount = 11
3
coins = [2], amount = 3
-1
coins = [1], amount = 0
0
Time Complexity
Space Complexity