PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/Coinbase

Implement debounced autocomplete component

Last updated: Mar 29, 2026

Quick Overview

This question evaluates front-end engineering competencies such as UI component design, asynchronous programming (debouncing and race-condition avoidance), keyboard accessibility and interaction, and client-side state management for autocomplete behavior within the System Design / web UI domain.

  • medium
  • Coinbase
  • System Design
  • Software Engineer

Implement debounced autocomplete component

Company: Coinbase

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

##### Question Implement an input autocomplete component that supports: debounced user input handling, asynchronous fetch of suggestions, rendering results, keyboard navigation (↑/↓ to move selection), highlighting the active suggestion, and submission on Enter.

Quick Answer: This question evaluates front-end engineering competencies such as UI component design, asynchronous programming (debouncing and race-condition avoidance), keyboard accessibility and interaction, and client-side state management for autocomplete behavior within the System Design / web UI domain.

Related Interview Questions

  • Design Crypto Order Routing - Coinbase (hard)
  • Design a crypto trading web frontend - Coinbase (hard)
  • Design query pagination for large datasets - Coinbase (medium)
  • Design a food delivery system - Coinbase (medium)
  • Design real-time crypto prices homepage - Coinbase (hard)
Coinbase logo
Coinbase
Aug 4, 2025, 10:55 AM
Software Engineer
Technical Screen
System Design
5
0

Implement an Autocomplete Input Component

Context

Build a reusable web UI component that provides typeahead autocomplete for user input. Assume a modern browser environment. You may implement with React + TypeScript (preferred) or plain JavaScript; an asynchronous function to fetch suggestions will be provided.

Assume a function is available:

  • fetchSuggestions(query: string, signal?: AbortSignal): Promise<string[]>

Requirements

  1. Debounced input handling to limit network calls (e.g., 300 ms wait after the last keystroke).
  2. Asynchronous fetch of suggestions using the provided fetchSuggestions.
  3. Render a suggestion list below the input.
  4. Keyboard navigation:
    • Arrow Down/Up to move the active selection through suggestions (wrap around permitted).
    • Highlight the active suggestion.
    • Enter submits the active suggestion if one is highlighted; otherwise, submit the current input value.
  5. Reasonable edge handling:
    • Avoid race conditions from overlapping async requests.
    • Handle empty/no results gracefully.
    • Do not fetch when the query is too short (e.g., 0–1 chars).

Deliverable

  • A working component implementation with brief notes on how it satisfies the above.
  • Include any minimal CSS or class hooks to show highlighting.
  • Provide a short usage example with a mock fetchSuggestions.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Coinbase•More Software Engineer•Coinbase Software Engineer•Coinbase System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.