Problem 2213 · Hard

Longest Substring of One Repeating Character

After each character replacement, report the longest run of one repeated character.

Open the interactive visualisation