Problem 1455 · Easy

Check If a Word Occurs As a Prefix of Any Word in a Sentence

Find the first word in a sentence that starts with a given prefix and return its one-based position. The visual scans the words left to right and highlights the match.

Open the interactive visualisation