You are viewing a single comment's thread. Return to all comments →
python
def sockMerchant(n, ar): d={i:ar.count(i) for i in set(ar)} res=0 for i in d: if d[i] >= 2: res = res + d[i]//2 return res
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