summaryrefslogtreecommitdiff
path: root/progs/a666.py
blob: be8c1d966e91ad33a263ee1f2114e8372e245095 (plain)
1
2
3
4
5
6
7
8
import sys 
def solve(a,n):   
    mx = -sys.maxsize - 1
    for j in range(1,n):  
        if (mx > a[j]):  
            return False  
        mx = max(mx,a[j - 1])    
    return True