Problem 796 · Easy

Rotate String

Check whether one string becomes another after repeatedly moving its first character to the end. The visual shows each shifted copy of the string being compared with the target.

Open the interactive visualisation