Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def solution(A):
- table = dict()
- for num in A:
- if not table.get(num):
- table[num] = 1
- else:
- table.pop(num)
- return table.keys()[0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement