Single Number III
mediumFind two elements appearing once when others appear twice
Single Number III
Key Insight
XOR all gives a^b. Find a differing bit to split array into two groups.
Step 1Problem
No binary data
[1,2,1,3,2,5] - find two singles.
1 / 5