Minimum Subset Sum Difference
Medium

Problem Statement

Split set into two subsets such that difference of their sums is minimized.

Examples

1Example 1
Input:
{ "nums": [ 1, 6, 11, 5 ] }
Output:
1
2Example 2
Input:
{ "nums": [ 1, 2, 7 ] }
Output:
4
3Example 3
Input:
{ "nums": [ 3, 1, 4, 2, 2 ] }
Output:
0
Loading...

Sign in to Run Code and Submit