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).

Asked at:

Meta


Question Timeline

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

Late February, 2026

Meta

Senior

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