maxpower-empty-string-bug

Status: IN

`maxPower` returns 1 for an empty string (loop is skipped, `max_count` stays at its initial value of 1) rather than 0 or raising — safe only because LeetCode guarantees `len(s) >= 1`.

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

JSON