Uber Coding & Algorithms Interview Questions

Uber Coding & Algorithms interview questions center on practical problem solving at scale: expect timed coding exercises that mirror real engineering tasks rather than brainteasers. Interviews often use an online assessment (CodeSignal) and live 30–45 minute coding sessions on a whiteboard or shared editor, followed by deeper loop interviews for onsite or virtual rounds. What’s distinctive is the emphasis on clear, production-minded solutions that consider runtime and memory, edge cases, and how an approach would behave under Uber’s low-latency, geo-distributed constraints. For interview preparation, focus on algorithmic patterns (arrays, strings, trees, graphs, dynamic programming, hashing, sliding windows, and heaps) and on communicating trade-offs, complexity, and correctness as you code. Practice timed problems, run mock interviews, and rehearse explaining design choices and optimizations aloud. Senior candidates should also be ready to connect coding choices to system-level concerns like scaling and reliability. Good preparation shows up as concise planning, clean code, thoughtful test cases, and calm recovery from mistakes.

142 Questions 1 Company07.03.2026
Showing 20 results
Role
Uber logo
Uber
Easy
Software Engineer

Find smallest start index avoiding left exit

You are given an integer array jump of length n (0-indexed). If you are currently at index i, your next position becomes i + jump[i] (a positive value...

Coding & Algorithms
5
0
43 people solved
Dec 30, 2025
Uber logo
Uber
Hard
Software Engineer

Find cheapest flight with at most K stops

Problem You are given a directed weighted graph representing flights between cities. Inputs - An integer n: number of cities, labeled 0..n-1. - A list...

Coding & Algorithms
8
0
79 people solved
Dec 25, 2025
Uber logo
Uber
Medium
Machine Learning Engineer

Compute minimal time to finish dependent tasks

Coding: Task Scheduling With Prerequisites (Parallel Allowed) You have n tasks labeled 1..n. Each task takes exactly 1 unit of time to complete. Some ...

Coding & Algorithms
11
0
140 people solved
Dec 15, 2025
Uber logo
Uber
Hard
Software Engineer

Maximize stock profit with one or two trades

You are given an array prices where prices[i] is the price of a given stock on day i (0-indexed). You want to maximize your profit by choosing when to...

Coding & Algorithms
5
0
82 people solved
Nov 17, 2025
Uber logo
Uber
Hard
Software Engineer

Implement three interview-style coding tasks

You are given three separate coding tasks, all focused on algorithm and data-structure design. --- Task 1: Longest Bounded-Difference Subarray You are...

Coding & Algorithms
15
0
132 people solved
Nov 11, 2025
Uber logo
Uber
Medium
Software Engineer

Compute outer boundary of an N-ary tree

You are given the root of a rooted N-ary tree. Each node contains: - An integer value. - An ordered list of children from left to right (0 or more chi...

Coding & Algorithms
14
0
142 people solved
Oct 28, 2025
Uber logo
Uber
Medium
Software Engineer

Print directory tree with indentation

You are given a root directory of a filesystem represented as a tree. Each node is either a directory (can have children) or a file (no children). Pri...

Coding & Algorithms
15
0
113 people solved
Oct 18, 2025
Uber logo
Uber
Hard
Software Engineer Locked

Minimize time using elevator then climb stairs

This question evaluates a candidate's ability to model and optimize a discrete decision under resource constraints, testing algorithmic optimization, ...

Coding & Algorithms
10
0
94 people solved
Oct 18, 2025
Uber logo
Uber
Medium
Data Scientist

Implement weighted sampling without replacement

Implement in Python a function sample_k(items, weights, k) that returns k items without replacement with probability proportional to weight. Requireme...

Coding & Algorithms
8
0
121 people solved
Oct 13, 2025
Uber logo
Uber
Hard
Data Scientist

Implement sqrt with Newton vs binary search

Implement numerically robust square-root routines and analyze convergence Task 1 — sqrt_newton(x, tol=1e-12) Implement a Python function that returns ...

Coding & Algorithms
7
0
138 people solved
Oct 13, 2025
Uber logo
Uber
Medium
Data Scientist

Check anagrams under real-world constraints

Given two strings s and t, determine whether they contain exactly the same multiset of characters (e.g., 'abc' and 'cab' → true; 'aab' and 'ab' → fals...

Coding & Algorithms
4
0
84 people solved
Oct 13, 2025
Uber logo
Uber
Medium
Data Scientist

Compute maximum concurrent trips from intervals

You’re given n trip intervals [start, end) in seconds, where start < end, representing when a rider’s trip starts and ends in a city on a specific day...

Coding & Algorithms
16
0
164 people solved
Oct 13, 2025
Uber logo
Uber
Medium
Software Engineer

Implement 2D word search variants and analyze complexity

Given an m x n grid of uppercase letters board and a string word, implement two related functions: ( 1) Fixed-direction search: Return true if word ap...

Coding & Algorithms
6
0
58 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Sort by squares and find k-th smallest

Given a nondecreasing sorted array of integers nums, do the following: 1) Reorder the original elements by increasing square value (equivalently, by a...

Coding & Algorithms
9
0
73 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Compute build order from dependencies

Given a set of package build dependencies, output a valid build order so that each package is built only after all of its dependencies. The input is a...

Coding & Algorithms
10
0
74 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Solve minimum rate and subset sum

1) Minimum rate to finish vaults within a deadline: You are given an array vaults of positive integers representing the amount in each vault along a r...

Coding & Algorithms
12
0
93 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Simulate one-round color elimination on a grid

Given an m x n integer matrix board where board[r][c] > 0 represents a color and 0 represents empty: ( 1) A nonzero cell at (r,c) explodes in this rou...

Coding & Algorithms
11
0
77 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Count subarrays with ≥k identical pairs

Question LeetCode 2537. Count the Number of Good Subarrays – Given an integer array nums and an integer k, return the number of contiguous subarrays i...

Coding & Algorithms
4
0
52 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Handle invalid Lisp expression parsing

Question LeetCode 736. Parse Lisp Expression – Given a string representing a Lisp-like expression containing let/add/mult operations and variable bind...

Coding & Algorithms
2
0
50 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Design time-versioned KV without timestamp argument

Design a time-versioned key-value store that does not accept a timestamp argument on writes. Support set(key, value) which stores the value with an in...

Coding & Algorithms
3
0
74 people solved
Aug 1, 2025

Frequently Asked Questions

How difficult are Uber Coding & Algorithms interview questions?
Uber Coding & Algorithms interview questions are often rated medium to hard, with difficulty rising by level and role. For entry level positions you can expect many LeetCode medium problems and a few harder variations; for senior roles expect a heavier mix of challenging graph, dynamic programming, and optimization problems. Interviewers evaluate correctness, algorithmic choice, code quality, time and space complexity, and your ability to iterate under pressure. Performance is judged not only on solving the problem but on clear explanations, tradeoff awareness, and handling edge cases and follow-up optimizations.
What is the typical interview process and where do Coding & Algorithms questions appear?
Coding and algorithms show up across multiple stages of Uber's hiring funnel. Many candidates see an initial online assessment or screening task, followed by one or two technical phone or virtual interviews focused on coding. Onsite or loop interviews usually include two to three algorithmic coding rounds, sometimes a machine-coding or pair-programming exercise, plus system or design rounds for higher levels. Recruiters may also schedule a bar-raiser or hiring manager discussion. Expect to write working code while talking through your approach, and to face follow-up constraints or optimization prompts during the same session.
How should I schedule my preparation timeline for Uber Coding & Algorithms?
A focused timeline of three to twelve weeks works well depending on background and target level. Begin with two to four weeks strengthening fundamentals: arrays, strings, trees, graphs, hashing, sorting, and complexity analysis. Spend the next three to six weeks solving medium and hard problems, practising timed sessions and mock interviews. Reserve the final one to two weeks for system-level polishing: reviewing common patterns, running full mock interviews, and rehearsing clear explanations and edge-case testing. Adjust intensity if you are aiming for senior roles; add more systems and advanced algorithm practice accordingly.
What key subtopics in Coding & Algorithms should I focus on for Uber interviews?
Prepare core algorithmic areas that frequently appear: array and string manipulations, two pointers, sliding windows, hashing, sorting, trees and binary search trees, heaps, graphs (BFS, DFS, shortest paths), and dynamic programming. Also practice design of efficient data structures, complexity tradeoffs, recursion vs iterative solutions, and bit manipulation. Pay attention to implementation details such as null and boundary handling, memory constraints, and test-case generation. For some teams, geospatial, routing or pathfinding nuances are emphasized, so be comfortable mapping problems to appropriate graph or greedy strategies.
What standout tips and common pitfalls should I keep in mind for Uber coding interviews?
Communicate clearly: state assumptions, describe the plan, and verbalize complexity tradeoffs before coding. Start with a correct brute force then optimize, and validate with quick examples and edge cases. Manage time by setting micro-deadlines in the interview and avoid premature over-optimization. Common pitfalls include not asking clarifying questions, skipping tests, ignoring space constraints, and failing to explain design choices. For coding rounds, write clean, modular code and handle bounds and nulls explicitly. If stuck, outline alternatives and test partial solutions to demonstrate progress and problem-solving mindset.

Explore more Uber Coding & Algorithms interview questions

Real questions from candidate reports, grouped by role, topic and company.

By role
Other categories at Uber
Coding & Algorithms questions at other companies
Browse all