We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6b1948 + aa0bb2f commit d771c45Copy full SHA for d771c45
docs/notes/Leetcode 题解 - 动态规划.md
@@ -906,9 +906,6 @@ Explanation: there are four ways to make up the amount:
906
907
```java
908
public int change(int amount, int[] coins) {
909
- if (amount == 0 || coins == null || coins.length == 0) {
910
- return 0;
911
- }
912
int[] dp = new int[amount + 1];
913
dp[0] = 1;
914
for (int coin : coins) {
0 commit comments