Skip to content

Glossary: Coding Interviews in C++

Bit tricks

Also written: bit manipulation

Shortcuts that work directly on the binary digits of numbers, using operations like shifts, AND, OR and XOR. They can solve some problems faster or with less memory than ordinary arithmetic.

Where the book teaches it

Related terms

GreedyUnion-find