Uber Software Engineer Coding & Algorithms Interview Questions

Practice 118 real Coding & Algorithms interview questions for Software Engineer roles at Uber.

118 Questions 1 Company08.16.2026
Showing 20 results
Role
Uber logo
Uber
Medium
Software Engineer

Find minimal rate k and subset sum

Question LeetCode 875. Koko Eating Bananas — Given vault sizes [3, 6, 7, 11] and time h = 8 hours, find the minimum integer rate k (vault units per ho...

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

Build a Quadtree and Analyze a Graph

Solve the following two coding problems. 1. Build a quadtree from an image You are given an N x N matrix of integers representing an image, where N is...

Coding & Algorithms
8
0
62 people solved
Dec 28, 2025
Uber logo
Uber
Hard
Software Engineer

Check feasibility of AI course schedule

You are designing a learning path for n AI-related courses, labeled from 0 to n - 1. Some courses have prerequisites. For example, to take course b, y...

Coding & Algorithms
7
0
79 people solved
Nov 17, 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
143 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
114 people solved
Oct 18, 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
74 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Design top-K frequency structure

Design an in-memory data structure that supports: add(x) to observe an item, inc(x) to increment its frequency, dec(x) to decrement (deleting when zer...

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

Count subarrays with at least k fruit pairs

Given an integer array nums where each value denotes a fruit type, and an integer k: For any subarray, define a 'pair' for fruit value v if its freque...

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

Parse and evaluate nested expressions with validation

Design and implement a parser/evaluator for a parenthesized expression language where the input string may be invalid. The language uses spaces as tok...

Coding & Algorithms
3
0
61 people solved
Jul 31, 2025
Uber logo
Uber
Medium
Software Engineer

Implement uniform sampling in squares

Implement uniform sampling in squares Implement a class Square representing an axis-aligned square on the 2D plane that supports sampling a uniformly ...

Coding & Algorithms
6
0
76 people solved
Jul 15, 2025
Uber logo
Uber
Medium
Software EngineerSenior+

Quadtree for 2D Geospatial Points

Quadtree for 2D Geospatial Points Design and implement a point quadtree that stores geographic locations on a 2D plane and supports efficient axis-ali...

Coding & Algorithms
0
0
6 people solved
Jun 28, 2026
Uber logo
Uber
Easy
Software EngineerNew Grad Locked

Sort a String of Clothing Sizes

Sort a string containing only S, M, and L into size order in linear time. Extend the discussion to custom token orderings, unknown-size behavior, empt...

Coding & Algorithms
2
0
15 people solved
Jun 24, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Reconstruct the Alphabet Order of an Alien Language

This question tests graph construction and topological sorting, core algorithmic skills for reasoning about partial orderings derived from constraints...

Coding & Algorithms
0
0
1 people solved
Jun 8, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Maximize Throughput and Count Trigger Components

This question evaluates proficiency in algorithmic optimization under resource constraints (maximizing pipeline throughput within a budget) and in mod...

Coding & Algorithms
1
0
12 people solved
May 28, 2026
Uber logo
Uber
Easy
Software Engineer Locked

Find Earliest Column With One

This question evaluates algorithmic problem-solving and optimization skills for working with a row-wise sorted binary matrix accessed via an API, focu...

Coding & Algorithms
1
0
16 people solved
May 15, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Count Islands After Land Additions

This question evaluates understanding of dynamic connectivity, incremental graph updates, and algorithmic efficiency when maintaining connected compon...

Coding & Algorithms
1
0
15 people solved
May 11, 2026
Uber logo
Uber
Medium
Software EngineerSenior+ Locked

Implement Last-Click Attribution APIs

This question evaluates a candidate's ability to implement stateful, time-windowed event matching and attribution, testing skills in data structures, ...

Coding & Algorithms
1
0
13 people solved
May 9, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Implement Cache Eviction And Seat Assignment

This question evaluates understanding of data structure design and algorithmic reasoning, covering cache eviction policies (least-recently-used) and s...

Coding & Algorithms
0
0
9 people solved
May 4, 2026
Uber logo
Uber
Medium
Software Engineer

Find Earliest Full Connectivity Timestamp

You are given: - A list of all user IDs in a ride-sharing system. - A chronological text log of ride-sharing events. Each relevant event contains a ti...

Coding & Algorithms
1
0
14 people solved
Apr 26, 2026
Uber logo
Uber
Medium
Software EngineerSenior+

Find the First Unique IP

You are processing a chronological stream of server hit records. Each record contains an IP address as a string. Design and implement a component that...

Coding & Algorithms
19
0
186 people solved
Apr 23, 2026

Explore more Uber Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Uber Software Engineer categories
Browse all