count-letters-linear-time

Status: IN

`count_letters` runs in O(n) time because each character is consumed by exactly one iteration of the inner while loop across the entire execution

Source: entries/2026/06/06/count-substrings-with-only-one-distinct-letter-solution.md

JSON