Back to Dashboard

Pro pattern

Upgrade to Pro to access this pattern and all 22 patterns.

Upgrade
PATTERN

Bit Manipulation

Use bitwise operators (AND, OR, XOR, shifts) to solve problems involving single-number detection, duplicate/missing finding, bit counting, and arithmetic without operators — all in O(1) space.

Learn Bit ManipulationExplanation, templates & reference

Single Number

easy

Number of 1 Bits

easy

Counting Bits

medium

Sum of Two Integers

medium