For an input {x1, …, xn}, return 2n-1 (x1 + … + xn), since each term appears in that many sums.
1
solved Finding the sum of all subsets of a given set
For an input {x1, …, xn}, return 2n-1 (x1 + … + xn), since each term appears in that many sums.
1
solved Finding the sum of all subsets of a given set