Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save itsmenick212/31b5495b25075dc627e29ec6a964dc73 to your computer and use it in GitHub Desktop.
Save itsmenick212/31b5495b25075dc627e29ec6a964dc73 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