maxpower-linear-time

Status: IN

`maxPower` runs in O(n) time and O(1) space using a single-pass "current vs. previous" scan — the canonical pattern for run-length problems.

Source: entries/2026/06/06/consecutive-characters-solution.md

JSON