Count Triplets with Even XOR Set Bits II
Sort each value by set-bit parity once; the XOR parity of a triplet is the XOR of its three parities, so counts replace enumeration.
Sort each value by set-bit parity once; the XOR parity of a triplet is the XOR of its three parities, so counts replace enumeration.