Split set into two subsets such that difference of their sums is minimized.
{ "nums": [ 1, 6, 11, 5 ] }
1
{ "nums": [ 1, 2, 7 ] }
4
{ "nums": [ 3, 1, 4, 2, 2 ] }
0
Sign in to Run Code and Submit