You are viewing a single comment's thread. Return to all comments →
counters: def lonelyinteger(a): times = Counter(a)
q =[k for k in times if times[k]==1] return q[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 →
counters: def lonelyinteger(a): times = Counter(a)