You are viewing a single comment's thread. Return to all comments →
Python 1-liner
def sockMerchant(n, ar): pairs = sum([ar.count(i) // 2 for i in set(ar)]) 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 1-liner