blob: 93b6c116d3ea27db5e34423fac4604dbe3b4712d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
def subset(ar, n):
res = 0
ar.sort()
for i in range(0, n) :
count = 1
for i in range(n - 1):
if ar[i] == ar[i + 1]:
count+=1
else:
break
res = max(res, count)
return res
|