Problem 1759 · Medium

Count Number of Homogenous Substrings

Count nonempty substrings made entirely of one repeated character.

Open the interactive visualisation