← ALL NOTES
Array

1863. Sum of All Subset XOR Totals

A subset's XOR total is the XOR of its elements (empty = 0). Sum the XOR totals over all 2^n subsets. This solution does the honest recursive enumeration: at each element, branch "take" and "skip,"…

Loading…