summaryrefslogtreecommitdiff
path: root/progs/a666.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a666.py')
-rw-r--r--progs/a666.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/a666.py b/progs/a666.py
new file mode 100644
index 0000000..be8c1d9
--- /dev/null
+++ b/progs/a666.py
@@ -0,0 +1,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 \ No newline at end of file