You are viewing a single comment's thread. Return to all comments →
def lonelyinteger(a): dict_occ = {} for num in a: dict_occ[num] = 0 for n in a: if num == n: dict_occ[num] += 1 for key, val in dict_occ.items(): if val == 1: return key
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 →