{"id":"extend-or-reset-pattern","text":"Multiple solutions (`findLengthOfLCIS`, `checkZeroOnes`) use the same single-pass \"extend or reset\" pattern: maintain a running counter for the current window, extend when the condition holds, reset when it doesn't","truth_value":"IN","source":"entries/2026/06/06/longest-continuous-increasing-subsequence-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":["extend-or-reset-canonical-consecutive-pattern"],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"extend-or-reset-pattern","truth_value":"IN","reason":"premise"}]}}