I was searching for a solution to the problem: For a given array of numbers find the sum of xor of all possible subsets. Here xor of a subset is the value comes from xoring all the elements of that subset
Answer of this question gives a solution. But didn't understand how the
or comes in the solution [see the last line of the accepted answer].
Can you explain?