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 17 of 19
Question 13 of 13
Step 17 of 19
Step 18 of 19
Question 13 of 13
Question 13 of 13
Not this time.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
Every letter matched: the pattern stands at place 3. Mark it.
That is every question on this run: 0 of 13 right.
Question 13 of 13
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's.
What the run did:
Every letter matched: the pattern stands at place 3. Mark it.
That is every question on this run: 0 of 13 right.
Question 13 of 13
Right.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
Every letter matched: the pattern stands at place 3. Mark it.
That is every question on this run: 1 of 13 right.