Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Single Number II
Medium
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Given an array where every element appears three times except one, find the single element.
Sample Input:
[2,2,3,2]
Sample Output:
3
Hints
Hint 1
Use bitwise operations to track bit counts
Hint 2
Count bits at each position modulo 3
Hint 3
Reconstruct the single number from bit counts
Code Editor
Reset
Run
Save
Loading...