Problem 28 · Easy

Find First Occurrence

Find where a short pattern first appears inside a longer string, or report that it never does. The visual slides a window across the text and marks each character comparison.

Open the interactive visualisation