The gateway problem to bit manipulation. XOR's self-cancellation property is one of the most powerful tools in the bit manipulation toolkit.
Enable JavaScript for the full StreamPrep guide.