Technical interview guide
Bit Manipulation
Working directly on a number's binary representation with AND/OR/XOR/shifts — for O(1) tricks and memory-efficient state.
- Read
- 40 min
- Practice MCQs
- 25
- Interview QA
- 25
- Edition
- v7
- Editorial status
- Reviewed
Scope: Language-neutral, with integer semantics cited from CPython 3.14, java.util as of Java 21, and the C++ standard library.
Interview QA
Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.
Curated: · Written: · Reviewed:
