Skip to main content

Bit Manipulation & XOR Patterns

Use masks, shifts, XOR cancellation, and the n & (n - 1) trick to reason about integer bits.

This lesson has not been built yet.