Skip to content

Instantly share code, notes, and snippets.

@ShinJJang
Created January 10, 2020 09:30
Show Gist options
  • Save ShinJJang/e9992b5e24d4052644adea79a450d2b4 to your computer and use it in GitHub Desktop.
Save ShinJJang/e9992b5e24d4052644adea79a450d2b4 to your computer and use it in GitHub Desktop.
def solution(A):
check_dict = {}
for i in A:
is_unpaired = check_dict.get(i, False)
if is_unpaired:
del check_dict[i]
else:
check_dict[i] = True
return list(check_dict.keys())[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment