Problem 459 · Easy

Repeated Substring Pattern

Decide whether a string can be built by repeating one of its shorter substrings several times. The visual tries each candidate length that divides the string and shows whether the repeated copies rebuild it exactly.

Open the interactive visualisation