Uber Interview Questions

Prepare for success with our curated collection of interview questions. Designed to help students practice and build confidence, these questions cover a range of topics and real-world scenarios to get you ready for your next interview.
Q1: Number of Islands

Given a grid of 0s and 1s, count the number of distinct islands using DFS/BFS.

Design a data structure for LRU cache with get and put operations in O(1) time.

 Find the k most frequent elements in an array.

 Merge overlapping intervals from a collection of intervals.

 Find two numbers in an array that add up to a target.

Build an array where each element is the product of all elements except itself.

Find two lines which together with the x-axis forms a container, holding the most water

Find the length of the longest substring without repeating characters.

Detect cycles in a directed graph to determine if all courses can be finished.

Clone an undirected graph using BFS/DFS.

Find the kth smallest element in a Binary Search Tree.

Find the minimum number of meeting rooms required.

 Determine if a word exists in a 2D character grid.

Implement random pick according to given probabilities.

Traverse a matrix in a spiral order

Solve equations like a/b = 2.0 using a graph.

Optimize conversion scenarios for profits.

Find order of characters in an alien language.

Construct quad tree from a 2D binary grid.

Return an array of squares sorted in non-decreasing order.

Find the longest subarray with the absolute difference less than or equal to a given limit.

Implement serialization and deserialization for binary trees.

Maintain structure for fast median retrieval.

Design a counter that counts the number of hits in the last 5 minutes.

Evaluate a simple expression string with +, -, *, / operators.

Q1. Design LRU Cache

Implement the classes to handle LRU eviction.

Design a system to manage multiple elevators, handling requests efficiently

Model and code a parking lot management system.

Design an API Rate Limiter (like Token Bucket or Sliding Window).

Model adding, removing, and assigning vehicles.

Implement logic for bill splitting and group calculations.

Design the backend for a news feed, focusing on class structure and data flow.

Design the dispatch service for matching rides.

Implement commands for a basic file system structure.

Create class diagrams and code for book, user, transaction management.

Build logic for a snake moving in a grid, eating food, and handling collisions.

Implement a job scheduler capable of running jobs in parallel.

Model seat selection, booking, and cancellation processes.

Code for logging events with ability to filter and search logs.

Assign cabs to riders based on location and priority.

Implement your own hash map with collision handling.

 Implement a thread-safe bounded blocking queue.

Design a lock manager for distributed resources.

Structure classes to handle orders, deliveries, and restaurants.

Implement services for sending app and SMS notifications.

 Design a system to manage a pool of worker threads.

Model LRU eviction logic in classes.

Build transaction logs and rollback/commit logic.

Q1. Design Uber (Ride-Sharing Service)

High-level architecture, components, data flow, scaling.

Architecture for push notifications to millions of users in real time.

Design dashboards and systems for metrics aggregation.

Design a scalable cache system for fast retrievals by multiple services.

Architecture to handle real-time payments, fraud detection, and concurrency.

Design to handle API rate limits globally.

Large scale location-based query service with routing.

Messaging delivery guarantees, scaling chat rooms, user management.

Support live and recorded video streaming, load balancing.

Design order assignment, delivery tracking, and ETA estimations.

Scale ride-matching for multiple users sharing a trip.

Handle ad selection and serving for millions of requests per second.

Gather, store, and analyze logs at scale.

Design for handling high concurrency and consistency.

Scalable file storage with redundancy and access control.

Collect and aggregate metrics from distributed nodes.

Handle spatial queries for nearby resources efficiently.

Design system for controlling and monitoring business workflows.

Scalable system for stock and order management.

Maintain data consistency across microservices.

 Scalable, secure access across services.

Design for fast and reliable content delivery worldwide.

Design for searching and faceting millions of products.

WhatsApp Icon

Hi Instagram Fam!
Get a FREE Cheat Sheet on System Design.

Hi LinkedIn Fam!
Get a FREE Cheat Sheet on System Design

Loved Our YouTube Videos? Get a FREE Cheat Sheet on System Design.