#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.
Last updated
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.
Last updated