summaryrefslogtreecommitdiff
path: root/progs/a852.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a852.py')
-rw-r--r--progs/a852.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/a852.py b/progs/a852.py
new file mode 100644
index 0000000..1b0f727
--- /dev/null
+++ b/progs/a852.py
@@ -0,0 +1,10 @@
+def frequency_Of_Largest(n,arr):
+ mn = arr[0]
+ freq = 1
+ for i in range(1,n):
+ if (arr[i] >mn):
+ mn = arr[i]
+ freq = 1
+ elif (arr[i] == mn):
+ freq += 1
+ return freq \ No newline at end of file