You are viewing a single comment's thread. Return to all comments →
def equalizeArray(arr): # Write your code here dic = Counter(arr)
max_val = max(dic.values()) return (sum(dic.values())-max_val)
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 →
def equalizeArray(arr): # Write your code here dic = Counter(arr)