Coin Change
Problem
Input: coins = [1,2,5], amount = 11 Output: 3 Explanation: 11 = 5 + 5 + 1Input: coins = [2], amount = 3 Output: -1Input: coins = [1], amount = 0 Output: 0
Pseudocode
Solution
Time and Space Complexity
Time
Space
Last updated