Loading…
Every bit manipulation problem we index, grouped by the curriculum module that teaches its pattern. Each problem ships with multiple approaches, complexity analysis, and a line-by-line walkthrough in Java and Python.
Grouped by curriculum module
Bit Manipulation guide
Overview
Bit Manipulation is operating directly on the binary representation of numbers, and it shows up regularly in technical interviews. Bit questions test XOR tricks, masking, and counting/toggling bits efficiently.
Our library indexes 20 Bit Manipulation problems (12 easy, 7 medium, 1 hard), each solved brute-force → optimal in Java and Python with a line-by-line walkthrough and interview talking points. They're grouped below by the curriculum module that teaches the underlying pattern, so related problems reinforce one another.
If you remember one thing about Bit Manipulation, make it this: XOR cancels duplicates and n & (n-1) clears the lowest set bit — two tricks behind many bit problems. Once that clicks, the signature patterns — XOR tricks, bit masks, bit counting — start to feel like a checklist you run on every new problem.
Study playbook
Common pitfalls
Frequently asked
Keep exploring