• + 0 comments

    In Python using collections library

    from collections import Counter

    def equalizeArray(arr):

    return len(arr) - max(Counter(arr).values())