Skip to content

Glossary: Algorithms Beyond the Basics in C++

XOR

Also written: exclusive or, ^

A bit operation giving 1 where two bits differ. Since `x ^ x` is 0, XORing a list cancels pairs, leaving the one unpaired order ID.

Where the book teaches it

Related terms

bit operators