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.
Asked at:
Miro
Meta
eBay
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late May, 2026
eBay
Mid-level
Mid February, 2026
Meta
Staff
Mid November, 2025
Miro
Senior
Similar to leetcode 1268, but return not top-3, but all words matching this prefix
Hello Interview Premium
Your account is free and you can post anonymously if you choose.