Search
⌘K

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


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

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

Comments

Your account is free and you can post anonymously if you choose.