You are viewing a single comment's thread. Return to all comments →
def equalizeArray(arr): frq = [0] * 100 for x in arr: frq[x - 1] += 1 return len(arr) - max(frq)
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 →