You are viewing a single comment's thread. Return to all comments →
Python 3 solution:
def sansaXor(arr): ln = len(arr) x = 0 i = 0 if (ln % 2 != 0): while (i < ln): x ^= arr[i] i += 2 return x return 0
Seems like cookies are disabled on this browser, please enable them to open this website
Sansa and XOR
You are viewing a single comment's thread. Return to all comments →
Python 3 solution: