Uber interview questions

109 questions from 20 candidate reports · 2017 to 2024

Online test → Technical → System design → HR·56% entry level

DSA

Showing 34 of 75 reported in this area

Convert a number from base 2 to base 6.
asked 5×easyPractice this →
Burst Balloons: Given an array of balloons with numbers, find the maximum coins you can collect by bursting the balloons optimally.
asked 2×hardPractice this →
Find all bridges in a graph.
asked oncemediumPractice this →
Delete a node in a doubly linked list
asked oncemediumPractice this →
Find strongly connected components in a directed graph
asked oncemediumPractice this →
Allocate minimum number of pages (variable binary search variant)
asked oncemediumPractice this →
MARTIAN - Collect maximum martians using dynamic programming on a grid
asked oncemediumPractice this →
Maximum Width of Binary Tree – Find the maximum width of a binary tree
asked oncemediumPractice this →
Given a final amount, print any list of dishes whose prices sum exactly to that amount.
asked oncemediumPractice this →
BALLOT - Determine the minimum possible maximum number of ballots per box given constraints
asked oncemediumPractice this →
Maximum Width of Binary Tree: Given a binary tree, find the maximum width among all levels.
asked oncemediumPractice this →
Follow-up optimization or variation on the previously discussed dynamic programming problem.
asked oncemediumPractice this →
Given the schedules of multiple people, find time intervals when at least one person is available.
asked oncemediumPractice this →
Given the schedules of multiple people, find a time interval when all of them are available to meet.
asked oncemediumPractice this →
Given a string of digits, find the total number of valid IP addresses that can be formed by inserting dots.
asked oncemediumPractice this →
Given a monotonic equation or function, find the value of N that satisfies the equation using binary search.
asked oncemediumPractice this →
Given a number n, find the number of valid parentheses expressions of length n without using the Catalan number formula.
asked oncemediumPractice this →
Pacific Atlantic Water Flow – Find all cells in a matrix from which water can flow to both the Pacific and Atlantic oceans
asked oncemediumPractice this →
Given an encoded string containing letters, digits, and square brackets (e.g., 2[a2[b3[c]]]), decode it to its expanded form.
asked oncemediumPractice this →
Weighted Random Numbers – Design a data structure to pick an index randomly where the probability is proportional to its weight
asked oncemediumPractice this →
Given a string and a 2D matrix of characters, check whether the string exists in the matrix by sequentially adjacent characters.
asked oncemediumPractice this →
Given multiple boxes with height and width constraints, determine the maximum number of boxes that can be nested inside one another
asked oncemediumPractice this →
Pacific Atlantic Water Flow: Given a matrix of heights, determine which cells can flow water to both the Pacific and Atlantic oceans.
asked oncemediumPractice this →
Given an array of struct nodes, check whether all nodes form exactly one valid binary tree and that no nodes outside the array are referenced
asked oncemediumPractice this →
Given an array A of N elements, find the minimum number of replacements required to make the array elements form a continuous sequence of integers.
asked oncemediumPractice this →
Given N ropes with lengths A[i], you can cut ropes into smaller pieces. Find the maximum possible rope length such that at least K ropes of that length can be obtained.
asked oncemediumPractice this →
Weighted Random Number Generation: Given numbers with associated weights, generate a random number such that the probability of each number is proportional to its weight.
asked oncemediumPractice this →
Given a binary string consisting of 0s and 1s, find the maximum value of K such that repeatedly flipping all substrings of length K can make all characters of the string equal to 0.
asked oncemediumPractice this →
Given a string s and an integer k, find the length of the longest substring that can be obtained by replacing at most k characters so that all characters in the substring are the same.
asked oncemediumPractice this →
Given initial capital and n crops, each with a minimum capital requirement and profit, choose at most k crops to maximize final capital, where profit from a crop increases the capital.
asked oncemediumPractice this →
Find the maximum number of boxes that can be nested inside each other given a list of boxes, where each box has a height and width, and a box can be placed inside another only if both height and width are strictly smaller.
asked oncemediumPractice this →
Given a 2D grid with roads (0) and buildings (1), multiple taxi stand locations, and a passenger location (all on roads), find the shortest path from the nearest taxi stand to the passenger. Movement is allowed up, down, left, and right. Return the actual path as a list of coordinates, or an empty list if no path exists.
asked oncemediumPractice this →
Complete the Projects (Hard Version)
asked oncehardPractice this →
Burst Balloons variation (Uber OA 2022).
asked oncehardPractice this →

CS fundamentals

Showing 15 of 30 reported in this area

What is the bias-variance tradeoff?
asked oncemediumPractice this →
What is thrashing in operating systems?
asked oncemediumPractice this →
Explain ensemble learning and its advantages.
asked oncemediumPractice this →
How does the operating system handle page faults?
asked oncemediumPractice this →
Explain threads and multithreading concepts in detail.
asked oncemediumPractice this →
Explain decision trees, random forests, and gradient boosting.
asked oncemediumPractice this →
Write code to implement semaphores for process synchronization.
asked oncemediumPractice this →
Explain concepts related to Threads and Object-Oriented Programming
asked oncemediumPractice this →
Explain gradient descent and how it is used in machine learning models.
asked oncemediumPractice this →
Which is better for distributed systems: normalization or denormalization?
asked oncemediumPractice this →
How do you design an experiment and select appropriate metrics for A/B testing?
asked oncemediumPractice this →
What are design patterns and why are they used? Explain any two design patterns.
asked oncemediumPractice this →
What challenges arise when conducting A/B tests at large scale and how would you address them?
asked oncemediumPractice this →
Explain the working and implementation of Priority Queues, including heapify and deheapify operations, and compare Binary Heap, Fibonacci Heap, and Pairing Heap.
asked oncemediumPractice this →
Design and implement an object-oriented data structure to manage restaurant dishes with names, ingredients, and prices, supporting add, print, billing with GST, and ingredient-based filtering.
asked oncemediumPractice this →

System design

Showing 8 of 13 reported in this area

Design a grocery shop system using object-oriented programming
asked oncemediumPractice this →
Given a case study, propose a suitable machine learning approach.
asked oncemediumPractice this →
Design a system to track arrival and departure of passengers at an airport and calculate the duration of time each passenger stays
asked oncemediumPractice this →
Design a leaderboard system supporting addUser(name, email), updateScore(user, value), getRank(user), and getFirstK(K) with tie-breaking by insertion order.
asked oncemediumPractice this →
Design a Meeting Room Booking System using Object-Oriented Programming that supports adding rooms, scheduling meetings with start time and duration, and canceling meetings
asked oncemediumPractice this →
Design a data structure that supports operations like insertion and updates efficiently, and discuss implementations using arrays, linked lists, BSTs, and Priority Queues.
asked oncemediumPractice this →
Design an application to control multiple devices (e.g., Fan, TV) with common commands like ON/OFF and device-specific commands. Implement the full code using appropriate OOP principles.
asked oncemediumPractice this →
Design MS Excel.
asked oncehardPractice this →

Behavioural

Showing 3 of 12 reported in this area

As a team leader, how would you resolve a conflict when teammates propose different design patterns for the same task?
asked oncemediumPractice this →
What do you do when you can't find the solution to a problem in a project context?
asked onceeasyPractice this →
Tell me about a time when you failed and what you learned from it

Showing 60 of 109 questions. Ranked by how often the same question came back across reports.

Practise a Uber-style interview

A spoken interview built from these questions, scored when you finish; the report is yours.

Start practising

Common questions

What questions does Uber ask?

Candidate interview reports most often cover DSA (57%) and CS fundamentals (23%).

How many rounds does Uber interview have?

Candidate interview reports show an average of 3.3 rounds per experience, with a typical sequence of Online test → Technical → System design → HR. Individual interview paths can vary.

Is the Uber interview hard?

Among questions with a reported difficulty, the mix is easy 16%, medium 61%, hard 23%.

Keep reading