You are viewing a single comment's thread. Return to all comments →
XOR
def lonely_integer(arr): result = 0 for num in arr: result ^= num return result
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
XOR