mediumJS ES5#108

Encontrar al impar (odd count)

Prompt

Given an array of signed 32-bit integers (−2³¹ … 2³¹−1), find the one that appears an odd number of times. There will always be exactly one such number.

The range is part of the contract: the intended O(1)-space answer relies on JavaScript's bitwise operators, which coerce to signed 32-bit. Say so in your answer.

Hints

Solution

Your Code

5 min

Tests

Click Run to test your code