We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
deflonelyinteger(a):# Write your code hereiflen(a)==1:returna[0]else:a.sort();c=a[0];count={c:1};foritemina[1:]:ifitemincount:count[item]+=1else:ifcount[c]==1:returncelse:c=itemcount[item]=1returnc
Cookie support is required to access HackerRank
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 →
Python: