You are viewing a single comment's thread. Return to all comments →
my python 3 def sockMerchant(n, ar):
unpaired, pairs = set(), 0 for i in ar: if i in unpaired: pairs += 1 unpaired -= {i} continue unpaired |= {i} 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 →
my python 3 def sockMerchant(n, ar):