Skip to content

Instantly share code, notes, and snippets.

@farsialgorithm
Last active January 30, 2020 19:19
Show Gist options
  • Save farsialgorithm/b8e01d12bae5ad131c01175a53205416 to your computer and use it in GitHub Desktop.
Save farsialgorithm/b8e01d12bae5ad131c01175a53205416 to your computer and use it in GitHub Desktop.
def singleNumber(nums):
v = 0
for i in nums:
v ^= i
return v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment