max-captured-forts-linear-time

Status: IN

`max_captured_forts` runs in O(n) time with a single pass and O(1) auxiliary space, using an anchor-tracking scan over non-zero elements.

Source: entries/2026/06/06/maximum-enemy-forts-that-can-be-captured-solution.md

JSON