← Questions

Find the number that appears an odd number of times

0
AmazonCodingLast asked Aug 2025

In an integer array exactly one value appears an odd number of times. Return it. A hash map is fine at first; the follow-up asks for O(1) extra space, which XOR gives.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding