Clinic #32: Single Number

The five moves a processor can make on a number’s row of switches. This clinic uses one of them, XOR, the move that flips a switch only where two rows disagree, and shows why it is the whole answer to one of the most asked easy problems.
Before you start. A computer stores every whole number as a row of ones and zeros, a row of switches read in twos instead of tens, so 101 is one four and one one, five. Bit Manipulation (thinking in bits) shows that row and the moves on it; this clinic needs only the row itself, and builds the one move it uses from scratch.