You are viewing a single comment's thread. Return to all comments →
Python
def sockMerchant(n, ar): seen = set() pairs = 0 for c in ar: if c not in seen: seen.add(c) else: pairs +=1 seen.remove(c) 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 →
Python