Created
July 27, 2018 13:03
-
-
Save lttzzlll/2912e6fcf176a4c460fc9c525b3d0c2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from operator import xor | |
from functools import reduce | |
a = [2,3,3,2,1] | |
r = reduce(xor, a, 0) | |
# r = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment