Find single non-repeating number in array
Filed under CodeNation
The question
Given an array of N integers where every number appeared twice except one, find the unique number. The interviewer then modified it such that numbers appearing twice occur consecutively (e.g., {1, 1, 2, 2, 3, 4, 4}), and the task was to find the unique element.
No write-up yet. Related questions below have one.
Related CodeNation questions
Collected from public candidate posts and coding forums. Updated Nov 2026.