There was an error while loading. Please reload this page.
1 parent 0f6796f commit 6596195Copy full SHA for 6596195
Algorithm/Implementation/Equalize_the_array.py
@@ -0,0 +1,4 @@
1
+from collections import Counter
2
+n=int(raw_input())
3
+arr=map(int,raw_input().split(' '))
4
+print (len(arr)-arr.count(max(set(arr),key=arr.count)))
0 commit comments