Compute the sum of XOR totals of all non-empty subsets of a list of integers.
Constraints
Example
>>> subset_xor_sum([1, 3]) 6 >>> subset_xor_sum([5, 1, 6]) 28 >>> subset_xor_sum([0]) 0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints