You are viewing a single comment's thread. Return to all comments →
def sockMerchant(n, ar): pairs = 0 mapa = dict() for i in ar: if i not in mapa: mapa[i] = 1 else: mapa[i]+=1 if mapa[i]%2==0: pairs+=1 return pairs
Seems like cookies are disabled on this browser, please enable them to open this website
Sales by Match
You are viewing a single comment's thread. Return to all comments →