Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1268. Search Suggestions System
For each prefix formed by typing characters of a search word, return up to three lexicographically smallest products from a given list that share that prefix. This is a prefix-search problem efficiently solved by sorting + binary search (or a trie) to retrieve the top-3 matches incrementally.
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.