Skip to content

guess the next step: Knuth-Morris-Pratt

Before each step plays, guess what it does. The page then shows the step as the run takes it and says why, the same sentence the watch page says there.

Step 12 of 35

aaaaaaaaaaaaaaabaaaaab01234
b is not a, the letter after a border 3 letters long. Fall back to that border's own border, 2 letters long, and compare again.

Question 7 of 27

What happens next?

Your guess