Update DynamicProgramming/MinimumSumPartition.java

Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
This commit is contained in:
tribbleofjim 2020-09-06 16:53:25 +08:00 committed by GitHub
parent 6fdd9c90da
commit e8a4628c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ public class MinimumSumPartition
for (int i = 0; i <= n; i++) {
dp[i][0] = true;
}
for(int j = 0; j < sum; j++){
for (int j = 0; j <= sum; j++) {
dp[0][j] = false;
}