Search Suggestions System
Given an array of product names products and a search word searchWord, after each character is typed, return at most three lexicographically smallest products that start with the current prefix.
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:
