Deep Dive
XOR Trick
136. Single Number · Bit Manipulation · 77 of 78
1/7
Everyone has a twin but one
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.
136. Single Number · Bit Manipulation · 77 of 78
Everyone has a twin but one
Every element appears twice except one. Find it in O(n) time and O(1) space.