Search
⌘K

Leetcode 896. Monotonic Array

Determine whether a given integer array is monotonic — either entirely non-decreasing or entirely non-increasing — by verifying the ordering of adjacent elements (expected O(n) time, O(1) extra space).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.