Skip to content

Commit 93cee09

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

DynamicProgramming/MinimumSumPartition.java

Lines changed: 1 addition & 0 deletions
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)