Problem 1446 · Easy

Consecutive Characters

Find the length of the longest run of one repeated character in a string. The visual highlights runs as they grow along the characters.

Open the interactive visualisation