CODING INTERVIEW QUESTIONS

Uber Coding Interview Questions (DSA)

50 DSA problems sourced from real Uber interviews

Uber Coding Interview Questions

ProblemDifficultyTags
Number of Islands IIHard
ArrayHash TableUnion-Find
Bus RoutesHard
ArrayHash TableBreadth-First Search
Medium
ArrayDepth-First SearchBreadth-First Search
First Unique NumberMedium
ArrayHash TableDesign
Minimum Edge Reversals So Every Node Is ReachableHard
Dynamic ProgrammingDepth-First SearchBreadth-First Search
Minimum Number of Refueling StopsHard
ArrayDynamic ProgrammingGreedy
Find the Safest Path in a GridMedium
ArrayBinary SearchBreadth-First Search
Making A Large IslandHard
ArrayDepth-First SearchBreadth-First Search
Maximize Sum of Weights after Edge RemovalsHard
Dynamic ProgrammingTreeDepth-First Search
Word SearchMedium
ArrayStringBacktracking
Word Search IIHard
ArrayStringBacktracking
Medium
TreeDepth-First SearchBinary Search Tree
Evaluate DivisionMedium
ArrayStringDepth-First Search
Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMedium
ArrayQueueSliding Window
Find the Closest PalindromeHard
MathString
Construct Quad TreeMedium
ArrayDivide and ConquerTree
Design Hit CounterMedium
ArrayBinary SearchDesign
Insert Delete GetRandom O(1)Medium
ArrayHash TableMath
Squares of a Sorted ArrayEasy
ArrayTwo PointersSorting
Hard
ArrayStringDepth-First Search
Medium
ArraySortingQuicksort
Meeting Rooms IIIHard
ArrayHash TableSorting
Split Array Largest SumHard
ArrayBinary SearchDynamic Programming
Final Prices With a Special Discount in a ShopEasy
ArrayStackMonotonic Stack
Minimum Operations to Reduce an Integer to 0Medium
Dynamic ProgrammingGreedyBit Manipulation
Medium
ArrayBreadth-First SearchMatrix
Count Paths That Can Form a Palindrome in a TreeHard
Hash TableBit ManipulationTree
The Earliest Moment When Everyone Become FriendsMedium
ArrayUnion-FindSorting
Leftmost Column with at Least a OneMedium
ArrayBinary SearchMatrix
Maximum Number of Points From Grid QueriesHard
ArrayTwo PointersBreadth-First Search
Time Based Key-Value StoreMedium
Hash TableStringBinary Search
Medium
Depth-First SearchBreadth-First SearchGraph Theory
Find Peak ElementMedium
ArrayBinary Search
Minimum Knight MovesMedium
Breadth-First SearchHeuristic SearchBidirectional Search
Painting a Grid With Three Different ColorsHard
Dynamic ProgrammingGraph Coloring
Shuffle an ArrayMedium
ArrayMathDesign
Count the Number of Infection SequencesHard
ArrayMathCombinatorics
Binary Searchable Numbers in an Unsorted ArrayMedium
ArrayBinary SearchStack
Minimum Fuel Cost to Report to the CapitalMedium
TreeDepth-First SearchBreadth-First Search
Hard
Two PointersDesignSorting
Find Eventual Safe StatesMedium
Depth-First SearchBreadth-First SearchGraph Theory
Hard
StringTreeDepth-First Search
Make Lexicographically Smallest Array by Swapping ElementsMedium
ArrayUnion-FindSorting
Number of Wonderful SubstringsMedium
Hash TableStringBit Manipulation
Roman to IntegerEasy
Hash TableMathString
Number of Ways to Form a Target String Given a DictionaryHard
ArrayStringDynamic Programming
Number of ProvincesMedium
Depth-First SearchBreadth-First SearchUnion-Find
Design In-Memory File SystemHard
Hash TableStringDesign
Easy
ArrayHash Table
Medium
Linked ListMathRecursion

Difficulty Breakdown

Easy
4 (8%)
Medium
27 (54%)
Hard
19 (38%)

Top Data Structures & Patterns

Array
31 (62%)
Breadth-First Search
15 (30%)
Depth-First Search
14 (28%)
Hash Table
11 (22%)
String
11 (22%)
Union-Find
9 (18%)
Matrix
9 (18%)
Sorting
9 (18%)

Frequently Asked Questions

What questions does Uber ask in coding interviews?

Uber coding interviews focus on A* Search, Array, Backtracking, Bellman–Ford Algorithm, and other data structure problems. We compiled 50 questions from real Uber interviews. The most common topics are A* Search, Array, Backtracking, Bellman–Ford Algorithm, Bidirectional Search. Filter by topic to see what comes up most often.

How many Uber coding interview questions are there?

InterviewSkool has 50 Uber coding interview questions: 4 Easy, 27 Medium, and 19 Hard. Most Uber interviews focus on Medium-difficulty problems, so prioritize those in your prep.

How should I prepare for Uber coding interviews?

Start with Medium difficulty problems. Group by topic (Array, Tree, DP) to build pattern recognition. Aim to solve 30 to 40 problems before your interview. Then practice under pressure with a mock interview.

Are Uber coding interview questions free?

Yes. All 50 Uber coding interview questions are free to browse with no sign-up required. You can filter by difficulty and topic tags. Start a mock interview with a free credit to practice under real pressure.

Practice with a Mock Interview

Simulate real Uber interview pressure with our AI interviewer.

Start Mock Interview →

Other Companies