Search⌘ K
AI Features

Check If a Word is a Prefix of Any Word in a Sentence

Check If a Word is a Prefix of Any Word in a Sentence asks you to find the first word that starts with the search word and return its one-based position, or negative one when no match exists.

Statement

You are given a sentence containing words separated by single spaces and a searchWord. ...