Search Suggestions System at DoorDash
Medium65.2% acceptance
This problem has 87.5% frequency at DoorDash.
Problem Description
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...
Read full problem and hintsTopics
Also asked at 21 companies
More DoorDash Questions
Longest Increasing Path in a MatrixHardMaximum Profit in Job SchedulingHardMost Profit Assigning WorkMediumCheck if One String Swap Can Make Strings EqualEasyKoko Eating BananasMedium
View all DoorDash questions