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 19 of 35

aaaaaaaaaaaaaaabaaaaab012340
The text's a at position 3 matches the pattern's a.

Question 13 of 27

What happens next?

Your guess