PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Uber

Implement Store Autocomplete

Last updated: May 5, 2026

Quick Overview

This question evaluates string matching, prefix search, and data structure selection skills by requiring an autocomplete method that returns entries beginning with a given prefix from a list of store names.

  • medium
  • Uber
  • Coding & Algorithms
  • Software Engineer

Implement Store Autocomplete

Company: Uber

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

You are given a list of store names, for example: ```text ["McDonald's", "KFC", "Burger king", "Bites", "Biscuit shop"] ``` Implement an `autoComplete(s)` method that returns all store names whose names start with the input string `s`. Example: ```text autoComplete("B") -> ["Burger king", "Bites", "Biscuit shop"] ``` Assume matching is case-sensitive unless the interviewer specifies otherwise. If multiple stores match, return them in the same relative order as they appear in the original input list. Be prepared to clarify requirements and discuss trade-offs for different implementations, such as a simple linear scan versus approaches optimized for many autocomplete queries. Write tests to verify your implementation.

Quick Answer: This question evaluates string matching, prefix search, and data structure selection skills by requiring an autocomplete method that returns entries beginning with a given prefix from a list of store names.

Related Interview Questions

  • Thread-Safe Token-Bucket Rate Limiter - Uber (medium)
  • Group Anagrams - Uber (medium)
  • Quadtree for 2D Geospatial Points - Uber (medium)
  • Deep Equality of Two Records - Uber (medium)
  • Shortest Path in a Grid with Blocked Cells - Uber (medium)
|Home/Coding & Algorithms/Uber

Implement Store Autocomplete

Uber logo
Uber
May 5, 2026, 12:00 AM
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
2
0
Practice Read
Loading...

You are given a list of store names, for example:

["McDonald's", "KFC", "Burger king", "Bites", "Biscuit shop"]

Implement an autoComplete(s) method that returns all store names whose names start with the input string s.

Example:

autoComplete("B") -> ["Burger king", "Bites", "Biscuit shop"]

Assume matching is case-sensitive unless the interviewer specifies otherwise. If multiple stores match, return them in the same relative order as they appear in the original input list.

Be prepared to clarify requirements and discuss trade-offs for different implementations, such as a simple linear scan versus approaches optimized for many autocomplete queries. Write tests to verify your implementation.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Uber•More Software Engineer•Uber Software Engineer•Uber Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,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
  • AI Coding 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.