summaryrefslogtreecommitdiff
path: root/progs/a352.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a352.py')
-rw-r--r--progs/a352.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/progs/a352.py b/progs/a352.py
new file mode 100644
index 0000000..93b6c11
--- /dev/null
+++ b/progs/a352.py
@@ -0,0 +1,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 \ No newline at end of file