From 9672ffccfe673494f9384922852b8a1a0bcd3c38 Mon Sep 17 00:00:00 2001 From: tribbleofjim <44364697+tribbleofjim@users.noreply.github.com> Date: Sun, 6 Sep 2020 16:52:50 +0800 Subject: [PATCH] Update DynamicProgramming/MinimumSumPartition.java Co-authored-by: Du Yuanchao --- DynamicProgramming/MinimumSumPartition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicProgramming/MinimumSumPartition.java b/DynamicProgramming/MinimumSumPartition.java index 4796e764..d9a2b344 100644 --- a/DynamicProgramming/MinimumSumPartition.java +++ b/DynamicProgramming/MinimumSumPartition.java @@ -23,7 +23,7 @@ public class MinimumSumPartition public static int subSet(int[] arr) { int n = arr.length; int sum = getSum(arr); - boolean dp[][] = new boolean[n+1][sum+1]; + boolean[][] dp = new boolean[n + 1][sum + 1]; for(int i = 0; i < n; i++){ dp[i][0] = true; }