Skip to content

Instantly share code, notes, and snippets.

@divmgl
Last active March 23, 2017 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divmgl/ee58ee28471a867c4f064c06559cdd53 to your computer and use it in GitHub Desktop.
Save divmgl/ee58ee28471a867c4f064c06559cdd53 to your computer and use it in GitHub Desktop.
Codility.com OddOccurrencesInArray 100%/100%
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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment