Bit Manipulation Checkpoint

Bit tricks, XOR, and per-bit reasoning.


1. What does n & (n - 1) do?
2. If every number appears twice except one, XOR of all numbers yields:
3. Condition for n to be a power of two (for n > 0)?
4. The AND of all numbers in [left, right] keeps the:
5. If a target OR bit is 0, you must:
Join Discord