You are viewing a single comment's thread. Return to all comments →
def sockMerchant(n, ar):
count_dict = {} for number in ar: count_dict[number] = count_dict.get(number, 0) + 1 return sum([num//2 for num in count_dict.values()])
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 →
def sockMerchant(n, ar):