This is a verified interview question from Squarepoint. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "1268. Search Suggestions System" covers key patterns like Strings.
"NOTE : Same Question for all IIT You are given an array of strings products and a string searchWord. Design a system that suggests at most three product names from products after each character of searchWord is typed. Suggested products should have common prefix with searchWord. If there are more than three products with a common prefix return the three lexicographically minimums products. Return a list of lists of the suggested products after each character of searchWord is typed."
Join thousands of developers practicing for Squarepoint.