summaryrefslogtreecommitdiff
path: root/progs/a162.py
blob: d35782b160b3ea4c2b6eb109e4ea152d829c0e14 (plain)
1
2
3
4
5
6
7
def find_Min_Diff(arr,n): 
    arr = sorted(arr) 
    diff = 10**20 
    for i in range(n-1): 
        if arr[i+1] - arr[i] < diff: 
            diff = arr[i+1] - arr[i]  
    return diff