diyaaa19 / asc_desc_array

Write a function to check if a given array is sorted in ascending order

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Day 6, MUJ 21 Day Challenge

Input: [2, 4, 7, 9, 11]

Output: True

Explanation: The input array [2, 4, 7, 9, 11] is sorted in ascending order.

If the input were [5, 2, 8, 11, 6]:

Output: False

Explanation: The input array [5, 2, 8, 11, 6] is not sorted in ascending order, so the output is False.

About

Write a function to check if a given array is sorted in ascending order


Languages

Language:Python 100.0%