summaryrefslogtreecommitdiff
path: root/progs/a298.py
blob: a42caf43ddcddb19b34e77c92e5a13c7ed86b832 (plain)
1
2
3
4
5
6
7
8
def check(arr,n): 
    g = 0 
    for i in range(1,n): 
        if (arr[i] - arr[i - 1] > 0 and g == 1): 
            return False
        if (arr[i] - arr[i] < 0): 
            g = 1
    return True