Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Top K Keyword Products
Medium
You are given a list of product catalog item names and a search prefix. Return the top k item names where at least one word in the name starts with the given prefix (case-insensitive).
Rank results by the index of the word where the prefix first matches (0-indexed, lower index ranks higher). Break ties alphabetically by item name. ...
Asked at:Yelp
More Yelp interview questions
- Phrase Tokenizerhard
- Product Search Enginemedium
- Traffic Spike Countermedium
- Conference Buddy Pairinghard
- Dependency Chain Endmedium
- Jaccard Word Similarityeasy
- Overlap String Joinmedium
- Top K Active Customersmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.