You are viewing a single comment's thread. Return to all comments →
Easy to read code, concise and efficient
def sockMerchant(n, ar): Sum = 0 for i in list(set(ar)): Sum += ar.count(i)//2 return Sum `
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 →
Easy to read code, concise and efficient
def sockMerchant(n, ar): Sum = 0 for i in list(set(ar)): Sum += ar.count(i)//2 return Sum `