diff --git a/DynamicProgramming/MinimumSumPartition.java b/DynamicProgramming/MinimumSumPartition.java index 6220315e..20aeef84 100644 --- a/DynamicProgramming/MinimumSumPartition.java +++ b/DynamicProgramming/MinimumSumPartition.java @@ -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; }