Uber Coding Interview Questions
These are the coding problems tagged as asked at Uber in interviews and online assessments reported by candidates. Use the list to see which topics repeat, then solve the problems in order of difficulty: basics first, then the intermediate and advanced ones.
Reported questions change over time and are not a guarantee of what you will be asked, so treat them as a map of the patterns Uber tends to test rather than a list to memorise. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code.
Coding problems
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- Move Zeroes (Basic)
- Climbing Stairs (Basic)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- Valid Palindrome (Basic)
- Kth Largest Element (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Valid Anagram (Basic)
- Happy Number (Intermediate)
- Sort Colors (Basic)
- Remove Element (Basic)
- Squares of a Sorted Array (Basic)
- Largest Rectangle in Histogram (Advanced)
- Reverse Vowels of a String (Basic)
- Roman to Integer (Intermediate)
- Excel Column Number (Basic)
- Count Primes (Intermediate)
- Reverse Integer (Intermediate)
- Longest Valid Parentheses (Advanced)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Insert an Interval (Intermediate)
- Candy Distribution (Advanced)
- Subarrays Divisible by K (Intermediate)
- Maximum Points From Cards (Intermediate)
- Kth Smallest Pair Distance (Basic)
- Find K Closest Elements (Intermediate)
- Maximum Events Attended (Intermediate)
- Count Subarrays With Fixed Bounds (Intermediate)
- Minimum Knight Moves (Intermediate)
- Minimum Time to Complete Trips (Intermediate)
- Minimum Edge Reversals Per Node (Intermediate)
- Shortest Bridge Between Two Islands (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Minimum Path Sum (Intermediate)
- House Robber II (Intermediate)
- Next Permutation (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Longest Palindromic Subsequence (Intermediate)
- Minimum Window Substring (Advanced)
- Shortest Palindrome (Advanced)
- Add Strings (Basic)
- Shortest Path In Binary Grid (Intermediate)
- Is Bipartite (Intermediate)
- Course Schedule Feasible (Intermediate)
- Tree Vertical Traversal (Intermediate)
- Weighted Job Scheduling (Intermediate)
- LRU Cache Operations (Basic)
- LFU Cache Operations (Intermediate)
- Reconstruct Itinerary (Advanced)
- Walls and Gates Distance (Advanced)
- Find Peak in 2D Grid (Intermediate)
- Minimum Cost Tickets (Advanced)
- Hit Counter (Intermediate)
- Text Justification (Intermediate)
- Sliding Puzzle Solver (Basic)
- Reverse Linked List (Basic)
- Swap Nodes in Pairs (Intermediate)
- Maximum Depth of Binary Tree (Basic)
- Kth Smallest Value in a BST (Intermediate)
- Binary Tree Maximum Path Sum (Advanced)
- Binary Tree Right Side View (Intermediate)
- Boundary of Binary Tree (Advanced)
- Remove Zero-Sum Consecutive Nodes (Advanced)
- Linked List Components (Intermediate)
- Delete Node in a BST (Intermediate)
Related
- Company interview roadmaps
- Practice coding problems online
- System design interview questions
- SDE-2 interview preparation
- All interview question topics
Frequently asked questions
How should I use the Uber problem list?
Sort by the topics you are weakest in, solve a problem under a timer, then read the explanation. Repeat until the patterns feel familiar, and finish with a mock interview.
Are these the exact Uber interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.