Question: Write a Python function that takes in a list of integers ( elements ) , checks whether the list is in ascending order or not,
Write a Python function that takes in a list of integers elements checks whether the list is in ascending order or not, and returns True or False accordingly. You MUST provide the most efficient algorithm in terms of its time and space complexity. What is the time and space complexity of your algorithmfunction
Use the base code line below and write it in python:
def is descendingmylist:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
