Glossary: Algorithms Beyond the Basics in Go
XOR (exclusive or)
Also written: XOR, exclusive or, ^
A bit operator that gives 1 where two bits differ. Since `x ^ x` is 0, XOR-ing a slice cancels pairs and leaves the one unpaired number.
Glossary: Algorithms Beyond the Basics in Go
Also written: XOR, exclusive or, ^
A bit operator that gives 1 where two bits differ. Since `x ^ x` is 0, XOR-ing a slice cancels pairs and leaves the one unpaired number.