diff options
Diffstat (limited to 'progs/a747.py')
-rw-r--r-- | progs/a747.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/a747.py b/progs/a747.py new file mode 100644 index 0000000..f4ea228 --- /dev/null +++ b/progs/a747.py @@ -0,0 +1,10 @@ +def frequency_Of_Smallest(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 |