Design Search Autocomplete System

Problem overview from a real Pinterest interview:

You are given three arrays: * `queries[i]` is a search query issued by a user. * `timestamps[i]` is the time when `queries[i]` was issued. * `prefixes[j]` is a prefix typed into an autocomplete box.

Check more interview questions and experiences about Pinterest

Please log in to view interview details