9.4 Exercises
Basic Difficulty
268. Missing Number
A variation of the Single Number problem. Besides using bitwise operations, the problem can also be solved using the Gaussian summation formula.
693. Binary Number with Alternating Bits
Use bitwise operations to determine whether a number's binary representation alternates between 0
and 1
.
476. Number Complement
A variation of binary flipping problems.
Advanced Difficulty
260. Single Number III
A follow-up to the Single Number problem. Requires careful thought on how to leverage bitwise operations to solve.