You are viewing a single comment's thread. Return to all comments →
#Python Solution def sockMerchant(n, ar): pairs = 0 colors = set(ar) for color in colors: pairs += math.floor(ar.count(color)/2) 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 →