Skip to content

Commit 02a4f95

Browse files
committed
Update coin-change.cpp
1 parent 8d7dc9c commit 02a4f95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

C++/coin-change.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Time: O(n * k), n is the number of coins, k is the amount of money
22
// Space: O(k)
33

4+
// DP solution. (164ms)
45
class Solution {
56
public:
67
int coinChange(vector<int>& coins, int amount) {

0 commit comments

Comments
 (0)