Dsa
Bit Manipulation
Easy
Find Unique Number in Triples
In a given list, every number appears three times except for one number that appears only once. Write a program to find that unique number. The input consists of a single line containing space-separated integers. You should print the unique integer.
Example:
Input:
1 1 1 2 2 2 3 3 3 4 4 4 5
Output:
5
Key concepts
bit_manipulationunique
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now