You are viewing a single comment's thread. Return to all comments →
def lonelyinteger(a): counter = dict() for num in a: counter[num] = counter.get(num, 0) +1 return sorted(counter.items(), key= lambda x: x[1])[0][0]
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 →