summaryrefslogtreecommitdiff
path: root/progs/a747.py
blob: f4ea228caf814d9bec8f96e954dc1d80c5a9c000 (plain)
1
2
3
4
5
6
7
8
9
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