An array is monotonic if it is either monotone increasing or monotone decreasing. An array nums is monotone increasing if for all i <= j, nums[i] <= nums[j]. An array nums is monotone decreasing if ...
# An array is monotonic if it is either monotone increasing or monotone decreasing. # An array A is monotone increasing if for all i <= j, A[i] <= A[j]. # An array A is monotone decreasing if for all ...