Skip to content

Commit b6475fb

Browse files
authored
Update coin-change-2.cpp
1 parent 5466ef9 commit b6475fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/coin-change-2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Solution {
77
vector<int> dp(amount + 1);
88
dp[0] = 1;
99
for (const auto& coin : coins) {
10-
for(int i = coin; i <= amount; ++i) {
10+
for (int i = coin; i <= amount; ++i) {
1111
dp[i] += dp[i - coin];
1212
}
1313
}

0 commit comments

Comments
 (0)