Single Number II
mediumFind element appearing once when others appear 3 times
Single Number II
Key Insight
Count bits at each position mod 3. Remaining bits form the single number.
Step 1Problem
No binary data
[2,2,3,2] - find element appearing once (others appear 3x).
1 / 5