Given a non-empty array of integers nums, every element appears twice except for one. Find that single one using a hash set.
singleNumber([2,2,1]) => 1
singleNumber([4,1,2,1,2]) => 4
Waiting for you...
CodeBot will comment on your code as you write...
Click "Run Code" or press Ctrl+Enter to test your solution