โ† Amazon questions

Find Two Numbers with Odd Occurrences

Filed under Amazon

Given an unsorted array where all numbers appear an even number of times except for two numbers, find those two numbers in O(n) time and O(1) space.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.