mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-08 18:32:56 +08:00
Update DynamicProgramming/MinimumSumPartition.java
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
This commit is contained in:
@ -47,7 +47,7 @@ public class MinimumSumPartition
|
||||
}
|
||||
|
||||
// fill the index array
|
||||
int index[] = new int[sum];
|
||||
int[] index = new int[sum];
|
||||
int p = 0;
|
||||
for (int i = 0; i <= sum / 2; i++) {
|
||||
if (dp[n][i]) {
|
||||
|
Reference in New Issue
Block a user