Created
June 16, 2016 03:10
-
-
Save FredLoh/9d9bc48c41644d304eaf870a8f486867 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
input_array = [1,2,3,4,3,2,1] | |
i = 0 | |
for val in input_array: | |
i = i ^ val | |
print(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment