Uber Interview Prep (L4 / L5)

Uber’s loop from SDE-2 upward emphasises distributed systems more than most. The differentiator is mechanical rather than conceptual: Uber’s coding and machine coding rounds often expect runnable code against real test cases, so syntax fluency and debugging speed matter more here than at companies where a whiteboard sketch passes. A clean approach that does not compile scores badly.

The system design round expects depth on real-time systems, geo-indexing, and event-driven architecture. Uber open-sourced much of its internal infrastructure, and reaching for the right primitive by name — a durable workflow rather than a cron job, a geo-index rather than a bounding-box scan — reads as domain awareness rather than trivia.


Interview Process

Stage Duration Focus
Recruiter Screen 30 min Background, target level, team interest
Online Assessment 60-70 min CodeSignal-style, two coding problems
Technical Phone Screen 45-60 min DSA, working code expected
Onsite: DSA 45-60 min One or two problems with optimisation follow-ups
Onsite: Machine Coding / LLD 60-90 min Running code, clean class model, concurrency
Onsite: System Design 60 min Real-time, geo, event-driven. Weighted at L5
Hiring Manager / Leadership 45-60 min Ownership, incidents, cross-team work

The online assessment is not universal — experienced candidates are often routed straight to a phone screen. The round people underestimate is machine coding, because it is graded on code that runs rather than a design that sounds right. Level changes the weighting more than the round list: L4 is decided largely in the coding rounds, L5 in system design and the depth of what you have owned.


What Uber Actually Tests

Derived from 359 reported Uber-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 45 13%
Medium 209 58%
Hard 105 29%

Over a quarter of the list is Hard, so treat Hard problems as the baseline rather than a stretch goal.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Graphs 62 17%
2 Dynamic Programming 42 12%
3 Arrays & Hashing 32 9%
4 Binary Search 31 9%
5 Trees 29 8%
6 Sliding Window & Two Pointers 29 8%
7 Tries & String Search 24 7%
8 Design (Coding) 21 6%
9 Strings 21 6%
10 Heap / Priority Queue 18 5%

Uber Signature Problems

These rank high on Uber’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Bus Routes BFS Hard 14 of 142 LeetCode →
2 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Monotonic Queue + Ordered Set Medium 13 of 142 Solve →
3 Number of Islands II Union-Find Hard 8 of 142 LeetCode →
4 Construct Quad Tree Divide and Conquer + Tree Medium 8 of 142 LeetCode →
5 First Unique Number Data Stream + Queue Medium 4 of 142 LeetCode →
6 Find the Closest Palindrome Math + String Hard 7 of 142 LeetCode →
7 Count Paths That Can Form a Palindrome in a Tree Bit Manipulation + Tree Hard 4 of 142 LeetCode →
8 Leftmost Column with at Least a One Interactive + Binary Search Medium 3 of 142 LeetCode →
9 Find Minimum Time to Reach Last Room I Shortest Path + Graph Medium 4 of 142 LeetCode →
10 Escape the Spreading Fire BFS + Binary Search Hard 4 of 142 LeetCode →
11 Maximize Amount After Two Days of Conversions Graph + BFS Medium 3 of 142 LeetCode →
12 Find Minimum Time to Reach Last Room II Shortest Path + Graph Medium 3 of 142 LeetCode →
13 Find the Number of Ways to Place People II Geometry Hard 3 of 142 LeetCode →
14 Check for Contradictions in Equations Union-Find + Graph Hard 2 of 142 LeetCode →

If you are short on time, these carry more Uber-specific signal per hour than the universal top-100 lists.


Reported in the Last Six Months

The recency-filtered slice of Uber’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 First Unique Number Data Stream + Queue Medium LeetCode →
2 Minimum Edge Reversals So Every Node Is Reachable Graph + BFS Hard LeetCode →
3 Bus Routes BFS Hard LeetCode →
4 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Monotonic Queue + Ordered Set Medium Solve →
5 Number of Islands II Union-Find Hard LeetCode →
6 Alien Dictionary DAG + Topological Sort Hard Solve →
7 Construct Quad Tree Divide and Conquer + Tree Medium LeetCode →
8 Count Paths That Can Form a Palindrome in a Tree Bit Manipulation + Tree Hard LeetCode →
9 The Earliest Moment When Everyone Become Friends Union-Find Medium LeetCode →
10 Squares of a Sorted Array Two Pointers Easy Solve →
11 Final Prices With a Special Discount in a Shop Monotonic Stack Easy LeetCode →
12 Kth Smallest Element in a BST BST + Binary Tree Medium Solve →
13 Leftmost Column with at Least a One Interactive + Binary Search Medium LeetCode →
14 Word Search Backtracking + DFS Medium Solve →
15 Find Peak Element Binary Search Medium Solve →

System Design (HLD) Problems Asked at Uber

# Problem Difficulty Link
1 Uber / Lyft (Ride Sharing) Advanced Read →
2 Zomato / Uber Eats (Food Delivery) Advanced Read →
3 Nearby / Proximity Service Intermediate Read →
4 Distributed Job Scheduler Advanced Read →
5 Payment System Advanced Read →
6 Notification System Intermediate Read →
7 Metrics and Monitoring System Intermediate Read →
8 Rate Limiter Beginner Read →

LLD / Machine Coding Problems Asked at Uber

Uber’s machine coding round expects runnable code, not just a class diagram. Practice producing a working demo with clean object boundaries and real concurrency handling, in your own editor, against a clock.

# Problem Difficulty Link
1 Ride Matching Intermediate Read →
2 Splitwise (Expense Sharing) Intermediate Read →
3 Elevator System (concurrency) Intermediate Read →
4 Parking Lot Beginner Read →
5 Vending Machine Beginner Read →
6 Rate Limiter (Token Bucket) Intermediate Read →

DSA Problems Asked at Uber

88 problems across 12 pattern groups. Each group is allocated in proportion to its real share of Uber’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 14 on the list.

# Problem Pattern Difficulty Link
1 Alien Dictionary DAG + Topological Sort Hard Solve →
2 Number of Islands Union-Find + BFS Medium Solve →
3 Number of Islands II Union-Find Hard LeetCode →
4 Minimum Edge Reversals So Every Node Is Reachable Graph + BFS Hard LeetCode →
5 Evaluate Division Bellman–Ford Algorithm + Floyd–Warshall Algorithm Medium LeetCode →
6 Making A Large Island Union-Find + BFS Hard Solve →
7 Course Schedule II Topological Sort + Graph Medium Solve →
8 Find Minimum Time to Reach Last Room I Shortest Path + Graph Medium LeetCode →
9 The Earliest Moment When Everyone Become Friends Union-Find Medium LeetCode →
10 Course Schedule DAG + Topological Sort Medium Solve →
11 Divide Nodes Into the Maximum Number of Groups Union-Find + Graph Hard LeetCode →
12 Maximize Amount After Two Days of Conversions Graph + BFS Medium LeetCode →
13 The Maze II Heuristic Search + A* Search Medium LeetCode →
14 Find Minimum Time to Reach Last Room II Shortest Path + Graph Medium LeetCode →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 9 on the list.

# Problem Pattern Difficulty Link
15 Construct Quad Tree Divide and Conquer + Tree Medium LeetCode →
16 Kth Smallest Element in a BST BST + Binary Tree Medium Solve →
17 My Calendar I Segment Tree + Ordered Set Medium LeetCode →
18 Count Paths That Can Form a Palindrome in a Tree Bit Manipulation + Tree Hard LeetCode →
19 Block Placement Queries Fenwick Tree + Segment Tree Hard LeetCode →
20 Serialize and Deserialize Binary Tree Binary Tree + Design Hard Solve →
21 Delete Node in a BST BST + Binary Tree Medium LeetCode →
22 House Robber III DP on Trees + Binary Tree Medium Solve →
23 Binary Tree Right Side View Binary Tree + BFS Medium Solve →

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 8 on the list.

# Problem Pattern Difficulty Link
24 Best Time to Buy and Sell Stock DP Easy Solve →
25 Cherry Pickup DP Hard Solve →
26 Minimum Operations to Reduce an Integer to 0 Bit Manipulation + Greedy Medium LeetCode →
27 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
28 Maximum Coin Collection DP Medium LeetCode →
29 Split Array Largest Sum Prefix Sum + Binary Search Hard Solve →
30 Decode Ways DP Medium Solve →
31 Generate Parentheses Bracket Sequences + Backtracking Medium Solve →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 8 on the list.

# Problem Pattern Difficulty Link
32 First Unique Number Data Stream + Queue Medium LeetCode →
33 Design Hit Counter Data Stream + Queue Medium Solve →
34 Insert Delete GetRandom O(1) Randomized + Design Medium LeetCode →
35 LRU Cache Doubly Linked List + Design Medium Solve →
36 Shuffle an Array Randomized + Design Medium LeetCode →
37 All O`one Data Structure Doubly Linked List + Design Hard LeetCode →
38 Time Based Key-Value Store Design + Binary Search Medium Solve →
39 Min Stack Design + Stack Medium Solve →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 8 on the list.

# Problem Pattern Difficulty Link
40 Find the Closest Palindrome Math + String Hard LeetCode →
41 Text Justification Simulation + String Hard Solve →
42 Group Anagrams Sorting + Hash Table Medium Solve →
43 Split Message Based on Limit Enumeration + String Hard LeetCode →
44 Valid Anagram Sorting + Hash Table Easy Solve →
45 Roman to Integer Math + Hash Table Easy Solve →
46 Check if a String Is an Acronym of Words String + Array Easy LeetCode →
47 Excel Sheet Column Number Math + String Easy Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 8 on the list.

# Problem Pattern Difficulty Link
48 Bus Routes BFS Hard LeetCode →
49 Product of Array Except Self Prefix Sum Medium Solve →
50 Spiral Matrix Simulation + Matrix Medium Solve →
51 Valid Sudoku Matrix + Hash Table Medium Solve →
52 Shortest Bridge BFS + DFS Medium Solve →
53 The Maze BFS + DFS Medium LeetCode →
54 Two Sum Hash Table + Array Easy Solve →
55 Rotting Oranges BFS Medium Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 7 on the list.

# Problem Pattern Difficulty Link
56 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Monotonic Queue + Ordered Set Medium Solve →
57 Meeting Rooms II Prefix Sum + Heap Medium Solve →
58 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →
59 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →
60 Meeting Rooms III Heap Hard LeetCode →
61 Count Subarrays With Fixed Bounds Monotonic Queue + Sliding Window Hard Solve →
62 Find K Pairs with Smallest Sums Heap Medium LeetCode →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 7 on the list.

# Problem Pattern Difficulty Link
63 Random Pick with Weight Randomized + Prefix Sum Medium LeetCode →
64 Leftmost Column with at Least a One Interactive + Binary Search Medium LeetCode →
65 Escape the Spreading Fire BFS + Binary Search Hard LeetCode →
66 Minimum Number of Operations to Make Array Continuous Sliding Window + Binary Search Hard LeetCode →
67 Minimum Time to Complete Trips Binary Search Medium Solve →
68 Search in Rotated Sorted Array Binary Search Medium Solve →
69 Find Peak Element Binary Search Medium Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 6 on the list.

# Problem Pattern Difficulty Link
70 Word Search II Trie + Backtracking Hard LeetCode →
71 Design In-Memory File System Trie + Design Hard LeetCode →
72 Word Break Brute-Force Search + Memoization Medium Solve →
73 Top K Frequent Words Bucket Sort + Trie Medium Solve →
74 Replace Words Trie Medium LeetCode →
75 Encode and Decode TinyURL Hash Function + Design Medium LeetCode →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 5 on the list.

# Problem Pattern Difficulty Link
76 Final Prices With a Special Discount in a Shop Monotonic Stack Easy LeetCode →
77 Basic Calculator Stack Hard Solve →
78 Asteroid Collision Stack Medium Solve →
79 Exclusive Time of Functions Stack Medium LeetCode →
80 Maximum Subarray Min-Product Cartesian Tree + Monotonic Stack Medium LeetCode →

Backtracking

Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 4 on the list.

# Problem Pattern Difficulty Link
81 Word Search Backtracking + DFS Medium Solve →
82 Letter Combinations of a Phone Number Backtracking Medium Solve →
83 Sudoku Solver Dancing Links + Algorithm X Hard Solve →
84 Combination Sum Backtracking Medium Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 4 on the list.

# Problem Pattern Difficulty Link
85 Squares of a Sorted Array Two Pointers Easy Solve →
86 Rotating the Box Two Pointers Medium LeetCode →
87 Minimum Window Substring Sliding Window Hard Solve →
88 Merge Strings Alternately Two Pointers Easy Solve →

Uber’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Graphs Very High 14 (16%) Alien Dictionary, Number of Islands, Number of Islands II
2 Trees High 9 (10%) Construct Quad Tree, Kth Smallest Element in a BST, My Calendar I
3 Dynamic Programming High 8 (9%) Best Time to Buy and Sell Stock, Cherry Pickup, Minimum Operations to Reduce an Integer to 0
4 Design (Coding) Medium-High 8 (9%) First Unique Number, Design Hit Counter, Insert Delete GetRandom O(1)
5 Strings Medium-High 8 (9%) Find the Closest Palindrome, Text Justification, Group Anagrams
6 Arrays & Hashing Medium-High 8 (9%) Bus Routes, Product of Array Except Self, Spiral Matrix
7 Heap / Priority Queue Medium 7 (8%) Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit, Meeting Rooms II, Merge k Sorted Lists
8 Binary Search Medium 7 (8%) Random Pick with Weight, Leftmost Column with at Least a One, Escape the Spreading Fire
9 Tries & String Search Medium 6 (7%) Word Search II, Design In-Memory File System, Word Break
10 Stack & Monotonic Stack Medium 5 (6%) Final Prices With a Special Discount in a Shop, Basic Calculator, Asteroid Collision

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Graphs, Trees, Dynamic Programming covers the bulk of what Uber actually asks. The rest is insurance for the one round that goes somewhere unexpected.


Uber’s Open-Source Stack, and What to Say About It

Uber open-sourced much of its internal infrastructure. Each project maps to a problem the design round walks into, so the useful move is reaching for the right primitive rather than reciting the list.

Project What it is The design problem it answers
Cadence, and Temporal which grew out of it Durable workflow execution Long-running multi-step flows that must survive process restarts, instead of a hand-rolled state machine in a database
H3 Hexagonal hierarchical geospatial index Bucketing driver and rider positions for proximity queries, zone pricing, and aggregation at several resolutions
Ringpop Gossip membership with consistent hashing Sharding stateful work across a fleet and keeping ownership stable as nodes join and leave
Jaeger Distributed tracing Finding which hop in a request fan-out spent the latency budget
M3 Metrics storage and query High-cardinality time series at fleet scale, which is the monitoring half of any design answer

The sentence that earns credit is “this is a durable workflow, not a cron job” or “this is a geo-index question, not a table scan with a bounding box”. Naming the tool is the easy part.


Real-Time and Geo Design: What the Round Probes

Prompts arrive as product surfaces. The underlying problem is nearly always location at scale, matching under contention, or a stream you cannot pause. Map the prompt before you draw anything.

If the prompt is about The real problem is Go deep on
Finding nearby drivers Indexed proximity search H3 or geohash cells, cell fan-out at the boundary, update rate versus query rate, index freshness
Driver location updates A high-volume write stream Write path separate from read path, batching, last-write-wins per driver, what you keep versus discard
Matching a rider to a driver Contention and exactly-once assignment Short-lived locks or leases with fencing, offer timeouts, what happens when two dispatchers pick the same driver
Live trip tracking Push to a mobile client on a bad network WebSockets versus SSE versus polling, reconnection and backfill, interpolation between pings
Surge or dynamic pricing Windowed aggregation over a stream Tumbling windows per zone, late events, how a price is pinned for the duration of a quote
Trip state and receipts A long-lived state machine with money in it Durable workflow, idempotent transitions, compensation when payment fails after the ride ended
ETA Read-heavy computation over changing data Precomputed road segment costs, cache invalidation as traffic shifts, degrading to a coarse estimate
Trip history or analytics Hot path versus cold path Operational store for live trips, separate append-only store for history, how the two reconcile

The question that separates answers: which number is allowed to be stale, and for how long? A driver’s position can be a few seconds old; a fare charged to a card cannot be approximately right.


Leadership and Collaboration Round

# Question
1 Tell me about a production incident you led the response to. What did you change afterwards?
2 Tell me about a system you owned end to end. Where was the bottleneck?
3 Tell me about a time you disagreed with a design decision and how you handled it.
4 Tell me about a time you shipped against a deadline with known technical debt.
5 Tell me about a time a dependency you needed was not ready. What did you do?
6 Tell me about a trade-off you made that you later regretted.
7 Tell me about a time you worked with a team in a different timezone or region.
8 Why Uber, and which part of the business interests you?

Uber runs physical-world systems, so the stories that land are about operating something live: incidents, degradation, rollbacks, and decisions made with partial data at an awkward hour. Quantify what changed — latency, error rate, cost per trip — rather than describing the project.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Graphs (part 1) Alien Dictionary, Number of Islands, Number of Islands II
2 Graphs (part 2) Minimum Edge Reversals So Every Node Is Reachable, Evaluate Division, Making A Large Island
3 Trees (part 1) Construct Quad Tree, Kth Smallest Element in a BST, My Calendar I
4 Trees (part 2) Count Paths That Can Form a Palindrome in a Tree, Block Placement Queries, Serialize and Deserialize Binary Tree
5 Dynamic Programming (part 1) Best Time to Buy and Sell Stock, Cherry Pickup, Minimum Operations to Reduce an Integer to 0
6 Dynamic Programming (part 2) Coin Change, Maximum Coin Collection, Split Array Largest Sum
7 Design (Coding) First Unique Number, Design Hit Counter, Insert Delete GetRandom O(1)
8 Strings Find the Closest Palindrome, Text Justification, Group Anagrams
9 Arrays & Hashing Bus Routes, Product of Array Except Self, Spiral Matrix
10 Heap / Priority Queue Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit, Meeting Rooms II, Merge k Sorted Lists
11 Binary Search Random Pick with Weight, Leftmost Column with at Least a One, Escape the Spreading Fire
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Uber Interviews

  1. Know their open-source stack. Naming Cadence or Temporal for workflow orchestration, H3 for geo-indexing, or Ringpop for consistent hashing shows you understand the domain Uber operates in.
  2. Real-time is assumed, not optional. Matching, tracking, and pricing are all live systems. Show comfort with WebSockets, event streaming, and sub-second latency budgets.
  3. Geo-spatial thinking matters. For anything location-related, discuss geohash, H3 hexagons, or Redis Geo. “Store lat and lng in a database” is the answer that ends the round early.
  4. Distributed systems depth is expected at senior level. Distributed locking, exactly-once delivery, saga patterns, and failure handling should come up without the interviewer asking.
  5. Write code that actually runs. Interviewers frequently ask you to execute your solution against test cases. Practice in a real editor, handle edge cases, and leave time to debug.
  6. Drill the hard end of the list. Uber leans on graphs, dynamic programming, and heaps, and the follow-ups push past your first working solution. For a hard-only, pattern-complete drill, work through The Hard List - 20 patterns with at least four hard problems each.
  7. Separate the two design rounds in your head. Machine coding is classes and running code; system design is topology, data flow, and failure. Candidates who answer one with the other lose both.

Other Company Prep


Round structures, durations, and level mapping here reflect commonly reported candidate experience rather than published Uber documentation. The loop varies by org, level, and region, and the online assessment in particular is not present in every pipeline. Confirm your round list with your recruiter.