# 3.Given the set of positive integers S, partition this set into two subsets S1 and S2 so that the difference between # the sum of the elements in S1 and S2 is minimal. For example, for set S = { 1, 2, 3, 4, 5 }, # the two subsets could be S1 = { 1, 2, 4 } and S2 = { 3, 5 }. Display at least one of the solutions. def naive(s,s1,s2): if len(s)==0: return [s1,s2] x=s.pop() x1=naive(s.copy(),s1+[x],s2) x2=naive(s.copy(),s1,s2+[x]) if abs(sum(x1[0])-sum(x1[1]))