You are viewing a single comment's thread. Return to all comments →
Here is my one line Python solution utilizing a Counter object!
def equalizeArray(arr): return sum(Counter(arr).values()) - max(Counter(arr).values())
Seems like cookies are disabled on this browser, please enable them to open this website
Equalize the Array
You are viewing a single comment's thread. Return to all comments →
Here is my one line Python solution utilizing a Counter object!