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