We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 303c6b7 commit 52a026aCopy full SHA for 52a026a
Coin Change - Leetcode 322.py
@@ -14,3 +14,6 @@ def coinChange(self, coins: List[int], amount: int) -> int:
14
15
16
return dp[amount] if dp[amount] < float('inf') else -1
17
+ # Let C be the number of coins and A be the amount.
18
+ # Time Complexity: O(C * Amount)
19
+ # Space Complexity: O(Amount)
0 commit comments