Mental Model
Bit manipulation uses the tiny switches inside numbers to do math faster and simpler. It works directly on the binary form, which computers understand best.
Analogy: Imagine turning lights on and off in a row of switches instead of writing long notes. Flipping a switch is quick and exact, just like bit tricks are faster than normal math.
Number: 13
Binary: 1 1 0 1
↑ ↑ ↑ ↑
8 4 2 1 (bit values)
Operations flip these bits directly.