Skip to content

Instantly share code, notes, and snippets.

@codecakes
Created September 11, 2022 09:48
Show Gist options
  • Save codecakes/689c8a49f691763f4682d5bae8dd8d8c to your computer and use it in GitHub Desktop.
Save codecakes/689c8a49f691763f4682d5bae8dd8d8c to your computer and use it in GitHub Desktop.
Single out the the number present in uneven count in an array
import functools as fnctl
print(fnctl.reduce(lambda x, y: x^y, (4,1,2,1,2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment