Skip to content

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

Notifications You must be signed in to change notification settings

diyaaa19/asc_desc_array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages