Problem 87 · Hard

Scramble String

Decide whether one string can be produced from another by recursively splitting it and swapping the two halves. The visual shows the split points and which parts match.

Open the interactive visualisation