mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-10-25 11:14:02 +00:00
auto commit
This commit is contained in:
@@ -904,7 +904,7 @@ Explanation: there are four ways to make up the amount:
|
||||
|
||||
```java
|
||||
public int change(int amount, int[] coins) {
|
||||
if (amount == 0 || coins == null || coins.length == 0) {
|
||||
if (coins == null) {
|
||||
return 0;
|
||||
}
|
||||
int[] dp = new int[amount + 1];
|
||||
|
||||
Reference in New Issue
Block a user