Problem Description

Task: in array where every number appears twice except one, return the single number using XOR.

Input Format

Java method

Output Format

Return value

Constraints

O(n) time, O(1) space.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next