You are viewing a single comment's thread. Return to all comments →
def lonelyInteger (a): sortedA = sorted(a) lonelyInteger = 0 for i in range(0,len(sortedA)): lonelyInteger ^= sortedA[i] return lonelyInteger
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 →