Uber Array Coding Interview Questions
92 array coding problems are tagged as asked at Uber in interviews and online assessments reported by candidates. By difficulty they split into 15 basic, 54 intermediate and 23 advanced. The topics they most often combine with are Sorting, Hash Table, Graph Theory, Dynamic Programming.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Uber tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Product of Array Except Self (Intermediate)
- Move Zeroes (Basic)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- Kth Largest Element (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Sort Colors (Basic)
- Remove Element (Basic)
- Squares of a Sorted Array (Basic)
- Largest Rectangle in Histogram (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 Time to Complete Trips (Intermediate)
- Minimum Edge Reversals Per Node (Intermediate)
- Subarray Sum Equals K (Intermediate)
- House Robber II (Intermediate)
- Next Permutation (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Is Bipartite (Intermediate)
- Course Schedule Feasible (Intermediate)
- Weighted Job Scheduling (Intermediate)
- LRU Cache Operations (Basic)
- LFU Cache Operations (Intermediate)
- Minimum Cost Tickets (Advanced)
- Hit Counter (Intermediate)
- Linked List Components (Intermediate)
- Graph Valid Tree (Intermediate)
- Course Schedule Order (Intermediate)
- Cheapest Flights Within K Stops (Intermediate)
- Detonate the Maximum Bombs (Intermediate)
- Smallest String With Swaps (Intermediate)
- Nearest Exit From Maze Entrance (Intermediate)
- Burst Balloons (Advanced)
- Stone Game II (Intermediate)
- Minimum Score Polygon Triangulation (Intermediate)
- Min Stack Operations (Basic)
- Asteroid Collision (Intermediate)
- IPO (Advanced)
- Furthest Building You Can Reach (Intermediate)
- Find K Pairs With Smallest Sums (Intermediate)
- Smallest Number in Infinite Set (Intermediate)
- Maximum Number of Eaten Apples (Intermediate)
- Interval List Intersections (Intermediate)
- Meeting Rooms (Basic)
- Sliding Window Maximum Values (Advanced)
- Find First and Last Position (Intermediate)
- Median of Two Sorted Arrays (Advanced)
- Combination Sum (Intermediate)
- My Calendar I (Intermediate)
- Exam Room (Advanced)
- Design Parking System (Basic)
- Memory Allocator (Intermediate)
- Create Binary Tree From Descriptions (Intermediate)
- Min Cost to Connect All Points (Intermediate)
- Collect Coins in a Tree (Advanced)
- Minimum Fuel Cost to the Capital (Intermediate)
- Most Profitable Path in a Tree (Intermediate)
- Graph Connectivity With Threshold (Advanced)
- Minimize Malware Spread (Advanced)
- Minimize Malware Spread II (Advanced)
- Number of Ways to Reconstruct a Tree (Advanced)
- Largest 1-Bordered Square (Intermediate)
- Longest Subsequence With Limited Sum (Basic)
Related
- Uber coding interview questions
- Array problems
- Uber basic problems
- Uber intermediate problems
- Uber advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Uber problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
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.