Skip to content

#136 - Single Number

EasyBit Manipulation
Open on LeetCode

Given a non-empty array of integers nums, every element appears twice except for one. Find the element that appears only once. You must use O(1) extra space.

InputOutput
nums = [2,2,1]1
nums = [4,1,2,1,2]4
nums = [1]1

Released under the MIT License.