Problem 3215 · Medium

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.

Open the interactive visualisation