Data Structures and Algorithms ยท Techniques

Bit manipulation

Using a number's individual binary bits directly, for example to represent a small set or toggle a flag.

Also known as: bitmasking, XOR tricks, bitwise operators.

Start a lesson on Bit manipulation

Related topics