Skip to content

Commit 7024dae

Browse files
committed
fix: funciton name
1 parent c40bbd9 commit 7024dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/cpp/coinChange/coinChange.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Solution {
3636
if ( amount < 0 ) return -1;
3737
for (int i=0; i<coins.size(); i++) {
3838
if ( amount - coins[i] < 0 ) continue;
39-
int r = coinChange_recursive(coins, amount - coins[i]);
39+
int r = coinChange(coins, amount - coins[i]);
4040
if ( r == -1 ) continue;
4141
if (result > r ) result = r + 1;
4242
}

0 commit comments

Comments
 (0)