class Solution(object):
def singleNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
memory = {}
for num in nums:
if memory.get(num):
memory[num] += 1
continue
memory[num] = 1
for key in memory.keys():
if memory[key] == 1:
return key