Solution Review: Single Number
We try to solve the problem using a more optimal way.
We'll cover the following...
Solution review: Bit manipulation
We are dealing with bit manipulation and want to solve all of these problems with Bitwise operators.
Concepts
If we take XOR of zero and a bit, it will return that bit.
a ^ 0 = a
If we take XOR of two same bits, it will return 0.
a ^ a = 0
For n
...
Access this course and 1400+ top-rated courses and projects.