Least You Need to Know: AND, OR, XOR, and Single-Bit Updates
レッスンを開く
Bitwise operators treat integers as compact boolean vectors. Interview problems use this to test parity, flip flags, cancel duplicates with XOR, and update one bit at a time in constant space.