All Uber Coding Interview Questions
301 questions we track for Uber, most frequently asked first. Practice any of them in the code editor and get AI feedback on your solution.
- Junior14% (43)
- Mid/Senior58% (175)
- Staff28% (83)
Questionspage 3 of 4
- Find the City With the Smallest Number of Neighbors at a Threshold Distance5 companiesMid/Senior
- Maximum Number of Events That Can Be Attended14 companiesMid/Senior
- Minimum Cost to Make at Least One Valid Path in a Grid8 companiesStaff
- Find the Distance Value Between Two Arrays6 companiesJunior
- Construct K Palindrome Strings6 companiesMid/Senior
- Maximum Points You Can Obtain from Cards12 companiesMid/Senior
- Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit15 companiesMid/Senior
- Course Schedule IV6 companiesMid/Senior
- Final Prices With a Special Discount in a Shop7 companiesJunior
- Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree3 companiesStaff
- Number of Nodes in the Sub-Tree With the Same Label2 companiesMid/Senior
- Magnetic Force Between Two Balls10 companiesMid/Senior
- Remove Max Number of Edges to Keep Graph Fully Traversable4 companiesStaff
- Min Cost to Connect All Points10 companiesMid/Senior
- Graph Connectivity With Threshold1 companyStaff
- Number of Ways to Form a Target String Given a Dictionary9 companiesStaff
- Furthest Building You Can Reach16 companiesMid/Senior
- Find the Most Competitive Subsequence2 companiesMid/Senior
- Checking Existence of Edge Length Limited Paths2 companiesStaff
- Maximum Number of Eaten Apples1 companyMid/Senior
- Number Of Ways To Reconstruct A Tree1 companyStaff
- Merge Strings Alternately10 companiesJunior
- Count Nice Pairs in an Array6 companiesMid/Senior
- Minimum Absolute Sum Difference1 companyMid/Senior
- Maximum XOR for Each Query2 companiesMid/Senior
- Frequency of the Most Frequent Element11 companiesMid/Senior
- Maximum Subarray Min-Product3 companiesMid/Senior
- Rotating the Box10 companiesMid/Senior
- Get Biggest Three Rhombus Sums in a Grid4 companiesMid/Senior
- Find a Peak Element II7 companiesMid/Senior
- Nearest Exit from Entrance in Maze9 companiesMid/Senior
- Painting a Grid With Three Different Colors7 companiesStaff
- Check If String Is a Prefix of Array1 companyJunior
- Number of Strings That Appear as Substrings in Word1 companyJunior
- Array With Elements Not Equal to Average of Neighbors1 companyMid/Senior
- Maximum Earnings From Taxi8 companiesMid/Senior
- Minimum Number of Operations to Make Array Continuous4 companiesStaff
- Brightest Position on Street7 companiesMid/Senior
- Time Needed to Buy Tickets8 companiesJunior
- Process Restricted Friend Requests2 companiesStaff
- Find All People With Secret3 companiesStaff
- Detonate the Maximum Bombs6 companiesMid/Senior
- Find All Possible Recipes from Given Supplies11 companiesMid/Senior
- Minimum Difference in Sums After Removal of Elements7 companiesStaff
- Minimum Time to Complete Trips5 companiesMid/Senior
- Create Binary Tree From Descriptions5 companiesMid/Senior
- Replace Non-Coprime Numbers in Array5 companiesStaff
- Calculate Digit Sum of a String1 companyJunior
- Longest Path With Different Adjacent Characters5 companiesStaff
- Intersection of Multiple Arrays2 companiesJunior
- Number of Flowers in Full Bloom8 companiesStaff
- Escape the Spreading Fire4 companiesStaff
- K Divisible Elements Subarrays3 companiesMid/Senior
- Minimum Sum of Squared Difference3 companiesMid/Senior
- Amount of Time for Binary Tree to Be Infected12 companiesMid/Senior
- Longest Subsequence With Limited Sum4 companiesJunior
- Meeting Rooms III12 companiesStaff
- Count Subarrays With Fixed Bounds9 companiesStaff
- Most Profitable Path in a Tree6 companiesMid/Senior
- Split Message Based on Limit5 companiesStaff
- Minimum Fuel Cost to Report to the Capital5 companiesMid/Senior
- Count Palindromic Subsequences12 companiesStaff
- Divide Nodes Into the Maximum Number of Groups6 companiesStaff
- Maximum Number of Points From Grid Queries6 companiesStaff
- Add Edges to Make Degrees of All Nodes Even2 companiesStaff
- Count the Number of Good Subarrays7 companiesMid/Senior
- Put Marbles in Bags8 companiesStaff
- Maximize Win From Two Segments1 companyMid/Senior
- Rearranging Fruits9 companiesStaff
- Minimum Operations to Reduce an Integer to 08 companiesMid/Senior
- Collect Coins in a Tree12 companiesStaff
- Number of Adjacent Elements With the Same Color7 companiesMid/Senior
- Continuous Subarrays6 companiesMid/Senior
- Number of Black Blocks9 companiesMid/Senior
- Count Paths That Can Form a Palindrome in a Tree4 companiesStaff
- Find the Safest Path in a Grid3 companiesMid/Senior
- Minimum Absolute Difference Between Elements With Constraint8 companiesMid/Senior
- Check if a String Is an Acronym of Words2 companiesJunior
- Points That Intersect With Cars1 companyJunior
- Minimum Edge Reversals So Every Node Is Reachable10 companiesStaff
- Maximum Number of Alloys4 companiesMid/Senior
- Count the Number of Infection Sequences6 companiesStaff
- Find the Number of Ways to Place People II3 companiesStaff
- Number of Subarrays That Match a Pattern I5 companiesMid/Senior
- Find the Length of the Longest Common Prefix17 companiesMid/Senior
- Count Prefix and Suffix Pairs II4 companiesStaff
- Minimum Operations to Write the Letter Y on a Grid7 companiesMid/Senior
- Block Placement Queries8 companiesStaff
- Minimum Operations to Make Binary Array Elements Equal to One I6 companiesMid/Senior
- Minimum Operations to Make Binary Array Elements Equal to One II1 companyMid/Senior
- Find the Maximum Length of Valid Subsequence II6 companiesMid/Senior
- Check if the Rectangle Corner Is Reachable3 companiesStaff
- Find Minimum Time to Reach Last Room I4 companiesMid/Senior
- Find Minimum Time to Reach Last Room II3 companiesMid/Senior
- Zero Array Transformation II5 companiesMid/Senior
- Maximize Amount After Two Days of Conversions3 companiesMid/Senior
- Minimize the Maximum Edge Weight of Graph2 companiesMid/Senior
- Maximum Manhattan Distance After K Changes4 companiesMid/Senior
- Minimum Jumps to Reach End via Prime Teleportation4 companiesMid/Senior
- Best Time to Buy and Sell Stock using Strategy5 companiesMid/Senior