Find the Element that Appears Once
Published in
Jun 27, 2020
Problem
- Find the only element that appears once
In an unsorted array of integers, every element appears twice except for one element that appears only once. Return this element.Example:Input: a=[1, 4, 2, 4, 1, 3, 2]
Output: 3
- Category: Bit manipulation
Video: