Find First Word Containing Prefix
CodingOnsite, PhoneSoftware EngineerReported Jun, 2026Medium Frequency
Company question banks are included with the Insider plan.
Given an array of strings words and a string prefix, return the index of the first word that starts with prefix.
Return -1 if no word starts with prefix.
A prefix must match from the...