Uber logo

Uber Medium Interview Questions

16 medium-level practice questions for Uber technical interviews

coding Medium Verified Question #1

1. Move Through Array


Category: Array coding problem
# Move Through Array You are given an array where each element represents the number of steps you can move from that position. Positive numbers move...
Input: Array
Output: Computed result
coding Medium Verified Question #2

2. OA [CodeSignal] Final Prices After Discount


Category: Array coding problem
You are given an array prices where prices[i] is the price of an item. For each item at index i, find the first item at index j > i such that...
Input: Array
Output: Computed result
coding Medium Verified Question #3

3. OA [CodeSignal] Jump Game


Category: Array coding problem
You are at position i in an array. From each position, you can jump to: - i + 1 (one step forward) - Any position i + k where k ends in digit...
Input: Array
Output: Computed result
coding Medium Verified Question #4

4. OA [CodeSignal] Longest Subsequence With Limited Sum


Category: Array coding problem
You are given two arrays: nums (containing positive integers) and queries (each containing a target sum). For each query, return the maximum...
Input: Array
Output:** Computed result
coding Medium Verified Question #5

5. OA [CodeSignal] Minimum Operation To Reduce n To 0


Category: Algorithm coding problem
Given a positive integer n, in one operation you may replace n with either: - n = n + 2^i, or - n = n - 2^i for any integer i >= 0. Find...
Input: Integer(s)
Output: Integer
coding Medium Verified Question #6

6. OA [CodeSignal] Shortest Good Subarray


Category: Array coding problem
Given an array arr and an integer k, a subarray is called good if it contains at least k distinct integers. Return the length of the...
Input: Array
Output: Integer
coding Medium Verified Question #7

7. Robot Map


Category: Array coding problem
Given a location map and a query, find which robot matches the query. Location Map: A 2D array where each cell contains: - O = Robot - E =...
Input: Array
Output: Computed result
coding Medium Verified Question #8

8. [Object Oriented Design] Meeting Reservation System


Category: Interval-based coding problem
# Meeting Reservation System Design a meeting reservation system that manages meeting rooms and schedules. Implement a MeetingReservationSystem...
Input: Integer(s)
Output: Computed result
coding Medium Verified Question #9

9. Unimodal Cost Function Minimum


Category: Interval-based coding problem
# Unimodal Cost Function Minimum You are given a unimodal cost function f(x) = A * (x - C)^2 + D defined over the interval [lo, hi], where `A >...
Input: Given input
Output: Computed result
coding Medium Verified Question #10

10. Hierarchy Path Finder


Category: Tree coding problem
# Hierarchy Path Finder You are given an org chart represented as a tree. Each node in the tree has a unique integer ID and a display name. You are...
Input: List
Output: Computed result
coding Medium Verified Question #11

11. Weight Partition Check


Category: Algorithm coding problem
# Weight Partition Check You are given a list of distinct positive integer weights and a capacity value. Determine whether any subset of the weights...
Input: List
Output: Computed result
coding Medium Verified Question #12

12. Straight Line Sequence Search


Category: Grid/matrix coding problem
# Straight Line Sequence Search You are given an m x n grid of characters and a target sequence string. Determine whether the sequence appears in...
Input: 2D grid
Output: Computed result
coding Medium Verified Question #13

13. Next Palindrome Number


Category: String coding problem
# Next Palindrome Number Given a string num representing a positive integer, find and return the smallest palindrome that is strictly greater than...
Input: String
Output: Computed result
coding Medium Verified Question #14

14. Nested Arithmetic Expression Evaluator


Category: String coding problem
# Nested Arithmetic Expression Evaluator You are given a string expression containing nested calls to two functions: plus(a, b) and minus(a, b)....
Input: String
Output: Computed result
coding Medium Verified Question #15

15. Process CPU Time Calculator


Category: Interval-based coding problem
You are given a list of log entries from a single-threaded CPU scheduler. Each entry is a list of three strings: [process_name, action, timestamp],...
Input: Array of strings
Output: Computed result
coding Medium Verified Question #16

16. OA [CodeSignal] Prime Jumps


Category: Algorithm coding problem
# OA [CodeSignal] Prime Jumps A game is played with the following rules: - A player starts at cell 0 with a score of 0. - There is a row of n cells...
Input: Number(s)
Output: Computed result

No AI generated questions yet for Uber.

Start practicing Uber questions

Sign up for free to access walkthroughs, AI-generated questions, and more.

Get Started Free