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 hints

Topics

Also asked at 21 companies


More DoorDash Questions

View all DoorDash questions