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 2 of 22

abababcabababcababc0
The first letter, a, alone has no border: write 0.

Question 1 of 15

What happens next?

Your guess