Unvisited
Comparing
Match found
Mismatch

Controls

Time: O(n+m) | Space: O(m)

Steps

0 steps

Press Run to trace the algorithm one step at a time.