Bit Manipulation
These are the foundational techniques - the building blocks almost every problem in this section reuses. Trace each one until the binary cells feel natural, then work through the problem pages: Single-Integer Bits (complement, counting set bits, powers and properties) and XOR & Bitmask Sets (XOR tricks, single number, sets as bitmasks, in-place index marking).
Negating Bits in a Number
Checking the Least Significant Bit (Odd / Even)
Solutions:
FIG. FOUNDATIONS LSB CHECK● INTERACTIVE
Unsetting the Lowest Set Bit, Brian Kernighan's Algorithm
Solutions:
FIG. FOUNDATIONS UNSET LSB● INTERACTIVE