summaryrefslogtreecommitdiff
path: root/progs/a659.py
blob: b38ab534809a7aa90aafa43d0f3810445a3cfe55 (plain)
1
2
3
4
5
6
7
def get_Inv_Count(arr,n): 
    inv_count = 0
    for i in range(n): 
        for j in range(i + 1,n): 
            if (arr[i] > arr[j]): 
                inv_count += 1
    return inv_count