Status: IN
`isMonotonic` tracks `increasing` and `decreasing` flags simultaneously but never short-circuits — the loop runs to completion even if both flags are `False` mid-scan, making worst-case and best-case both O(n).
Source: entries/2026/06/06/monotonic-array-solution.md
JSON