You are viewing a single comment's thread. Return to all comments →
One-liner
def equalizeArray(arr): return len(arr) - max(arr.count(i) for i in arr)
Equalize the Array
You are viewing a single comment's thread. Return to all comments →
One-liner