Skip to content

Commit 6596195

Browse files
authored
Create Equalize_the_array.py
1 parent 0f6796f commit 6596195

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)