You are viewing a single comment's thread. Return to all comments →
l=len(arr) d_arr={} for i in arr: if i in d_arr: d_arr[i]=d_arr[i]+1 else: d_arr[i]=1 ma=0 ans=list() for i in arr: if d_arr[i]>ma: ma=d_arr[i] return l-ma
`
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 →
`