Premium
Autocomplete Engine: Debounced Suggestions That Never Go Stale
Challenge summary
Build the engine behind an autocomplete box: debounce, one request for the final query, ranked suggestions, a small cache, and a guard so a slow response for an older query never replaces the newer results.
What you'll practice
- Debounce input so one request goes out for the final query.
- Drop a response that belongs to a query the user has already left.
- Rank suggestions deterministically and cap the list.
- Turn a rejected request into a state the next query clears.
What Premium unlocks
Premium unlocks the runnable workspace, the tests, the implementation walkthrough and the decision graph.
Free related practice
Public interview reports: Code360 (April 2023), enginebogie (May 2023) · Booking.com frontend interview questions
Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.
Premium is $24 a month or $99 a year, less in many countries.