83 Count set bits Easy Bit Counting

Count how many 1s appear in the binary form of a number.

O(k) time where k = number of set bits · O(1) space
84 Power of two Easy Bit Check

Determine if a number is an exact power of 2 (like 1, 2, 4, 8, 16, ...).

O(1) time · O(1) space
85 Single number (XOR) Easy XOR Cancel

Find the number that appears only once in an array where every other number appears exactly twice.

O(n) time · O(1) space
86 Reverse bits Easy Bit Shift

Flip the binary representation of a 32-bit number so the first bit becomes the last and vice versa.

O(1) time (32 iterations) · O(1) space
87 Hamming distance Easy XOR + Count

Count how many bits are different between two numbers.

O(1) time · O(1) space
88 Bitwise AND of range Medium Bit Shift

AND all integers from m to n together. Find the result without looping through every number.

O(log n) time · O(1) space