You are viewing a single comment's thread. Return to all comments →
python is magic :)
def sockMerchant(arr): return sum([x//2 for x in list(Counter(arr).values())])
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Moving Tiles
You are viewing a single comment's thread. Return to all comments →
python is magic :)