You are viewing a single comment's thread. Return to all comments →
Using Python 3's Counter but without having to change inputs into integers.
from collections import Counter input() A = Counter(input().split()) print(sum(A.values()) - A.most_common(1)[0][1])
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 →
Using Python 3's Counter but without having to change inputs into integers.