You are viewing a single comment's thread. Return to all comments →
def sockMerchant(n, ar): # Write your code here frequency = {} result = 0 for i in ar: frequency[i] = frequency.get(i,0) + 1 for value in frequency.values(): result += value // 2 return result
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 →