Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
Given a space-separated sentence and a searchWord, determine whether searchWord is a prefix of any word and return the 1-based index of the first matching word, or -1 if no word starts with searchWord.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.