Problem 3773 · Medium

Maximum Number of Equal Length Runs

Cut the string into maximal runs, tally how many runs share each length, and report the largest tally.

Open the interactive visualisation