提交 776a9e07 编写于 作者: L labuladong

update content

上级 02278856
......@@ -276,7 +276,7 @@ int coinChange(int[] coins, int amount) {
int dp(int[] coins, int n) {
// 做选择,选择需要硬币最少的那个结果
for (int coin : coins) {
res = min(res, 1 + dp(n - coin))
res = min(res, 1 + dp(coins, n - coin))
}
return res
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册