Skip to content

Commit 93cee09

Browse files
author
NorthernBrain
committed
Modify to prevent memory leaks.
1 parent 9c9c5df commit 93cee09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DynamicProgramming/MinimumSumPartition.java

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public static void main (String[] args)
4141
min = Math.min(min,(sum-2*ans[i]));
4242
System.out.println(min);
4343
}
44+
sc.close();
4445
}
4546
static int[] subset(int arr[],int sum)
4647
{

0 commit comments

Comments
 (0)