#36 - Check if array is sorted or not
You are given an array of integers. Your task is to implement a function to check if the array is sorted in either non-decreasing or non-increasing order.
nums = [1, 4, 9, 10, 15]
Truenums = [14, 11, 9, 4, 1]
Truenums = [5, 2, 9, 4, 7]
FalseLast updated