Mental Model
Bit manipulation uses the tiny switches inside numbers to do math faster and simpler. It works directly on the bits, which are the smallest parts of numbers.
Analogy: Imagine a row of light switches representing a number. Instead of counting how many lights are on or off by walking around, you flip switches directly to get the answer quickly.
Number: 13
Bits: 1 1 0 1
↑ ↑ ↑ ↑
8 4 2 1 (bit values)
Each bit is a switch: ON(1) or OFF(0)