Problem 3158 · Easy

Find the XOR of Numbers Which Appear Twice

Count each value, then xor only the values whose count is exactly two; a value seen once or three times is skipped.

Open the interactive visualisation