Deep Dive

XOR Trick

136. Single Number · Bit Manipulation · 77 of 78

1/7

Everyone has a twin but one

4011221324
In this lessonStep 1 of 7 · ← → keys
The question

Every element appears twice except one. Find it in O(n) time and O(1) space.