Skip to content

Commit

Permalink
fix: funciton name
Browse files Browse the repository at this point in the history
  • Loading branch information
haoel committed Mar 26, 2019
1 parent 2f01d89 commit 646a155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/cpp/coinChange/coinChange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Solution {
if ( amount < 0 ) return -1;
for (int i=0; i<coins.size(); i++) {
if ( amount - coins[i] < 0 ) continue;
int r = coinChange_recursive(coins, amount - coins[i]);
int r = coinChange(coins, amount - coins[i]);
if ( r == -1 ) continue;
if (result > r ) result = r + 1;
}
Expand Down

0 comments on commit 646a155

Please sign in to comment.