Find the First Dictionary Word Matchable as a Reusable-Character Subsequence
Given a string s and a priority-ordered array of strings dictionary, return the first word in dictionary that can be matched from the characters of s in order. Return an empty string "" if n...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
