{"id":"monotonic-dual-flag-no-early-exit","text":"`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).","truth_value":"IN","source":"entries/2026/06/06/monotonic-array-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"monotonic-dual-flag-no-early-exit","truth_value":"IN","reason":"premise"}]}}