← Uber roles

Interview question tracker

Uber Coding Interview Questions — All time

Practice 434 coding questions from Uber company-tagged LeetCode lists across all available reporting periods. Explore reported interview questions and track your progress.

Company-wide data from Fahad7177-jeh/leetcode-company-wise-questions; see its AGPL-3.0 license. All-time questions also use dataengineervishal/leetcode-companywise-questions (MIT license).

Reporting periods reflect source data, not verified interview dates. Questions can recur; inclusion does not guarantee they will appear in your interview.

Updated weekly · Latest source check: ⓘLatest successful check of the sources used by this company. A check does not necessarily mean the questions changed.

One question at a time.

Top questions 434

DoneQuestionLeetCode
Bus RoutesSolve
Alien DictionarySolve
Construct Quad TreeSolve
Find the Closest PalindromeSolve
Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitSolve
Number of IslandsSolve
Number of Islands IISolve
Best Time to Buy and Sell StockSolve
Design Hit CounterSolve
Evaluate DivisionSolve
Insert Delete GetRandom O(1)Solve
Kth Smallest Element in a BSTSolve
LRU CacheSolve
My Calendar ISolve
Product of Array Except SelfSolve
Random Pick with WeightSolve
Squares of a Sorted ArraySolve
Text JustificationSolve
Two SumSolve
Word SearchSolve
Word Search IISolve
All O`one Data StructureSolve
Basic CalculatorSolve
Block Placement QueriesSolve
Count Subarrays With Fixed BoundsSolve
Course ScheduleSolve
Course Schedule IISolve
Design In-Memory File SystemSolve
Divide Nodes Into the Maximum Number of GroupsSolve
Find Minimum Time to Reach Last Room ISolve
First Unique NumberSolve
Group AnagramsSolve
Leftmost Column with at Least a OneSolve
Letter Combinations of a Phone NumberSolve
Making A Large IslandSolve
Meeting Rooms IISolve
Merge Strings AlternatelySolve
Minimum Operations to Write the Letter Y on a GridSolve
Minimum Window SubstringSolve
Rotating the BoxSolve
Serialize and Deserialize Binary TreeSolve
Shortest BridgeSolve
Shuffle an ArraySolve
Spiral MatrixSolve
Split Message Based on LimitSolve
The MazeSolve
Time Based Key-Value StoreSolve
Top K Frequent ElementsSolve
Top K Frequent WordsSolve
Valid AnagramSolve
Valid SudokuSolve
Word BreakSolve
Add Edges to Make Degrees of All Nodes EvenSolve
Add Two NumbersSolve
Array With Elements Not Equal to Average of NeighborsSolve
Asteroid CollisionSolve
Best Time to Buy and Sell Stock using StrategySolve
Binary Tree Right Side ViewSolve
Calculate Digit Sum of a StringSolve
Check for Contradictions in EquationsSolve
Check if a String Is an Acronym of WordsSolve
Check If String Is a Prefix of ArraySolve
Cherry PickupSolve
Clone GraphSolve
Coin ChangeSolve
Combination SumSolve
Construct K Palindrome StringsSolve
Copy List with Random PointerSolve
Course Schedule IVSolve
Create Binary Tree From DescriptionsSolve
Decode WaysSolve
Delete Node in a BSTSolve
Dungeon GameSolve
Employee ImportanceSolve
Encode and Decode TinyURLSolve
Escape the Spreading FireSolve
Excel Sheet Column NumberSolve
Exclusive Time of FunctionsSolve
Factor CombinationsSolve
Falling SquaresSolve
Find All Possible Recipes from Given SuppliesSolve
Find First and Last Position of Element in Sorted ArraySolve
Find K Pairs with Smallest SumsSolve
Find Median from Data StreamSolve
Find Minimum Time to Reach Last Room IISolve
Find Pattern in Infinite Stream ISolve
Find Pattern in Infinite Stream IISolve
Find Peak ElementSolve
Find the City With the Smallest Number of Neighbors at a Threshold DistanceSolve
Find the Distance Value Between Two ArraysSolve
Find the Number of Ways to Place People IISolve
Fixed PointSolve
Flood FillSolve
Generate ParenthesesSolve
Group Shifted StringsSolve
Happy NumberSolve
Hopper Company Queries ISolve
Hopper Company Queries IISolve
Hopper Company Queries IIISolve
House RobberSolve
House Robber IIISolve
Implement Trie (Prefix Tree)Solve
Insert IntervalSolve
Intersection of Multiple ArraysSolve
Interval List IntersectionsSolve
K Divisible Elements SubarraysSolve
Koko Eating BananasSolve
Largest Rectangle in HistogramSolve
Longest Consecutive SequenceSolve
Longest Palindromic SubsequenceSolve
Match Alphanumerical Pattern in Matrix ISolve
Maximize Amount After Two Days of ConversionsSolve
Maximize Win From Two SegmentsSolve
Maximum Coin CollectionSolve
Maximum Depth of Binary TreeSolve
Maximum Increasing Triplet ValueSolve
Maximum Number of Eaten ApplesSolve
Maximum Subarray Min-ProductSolve
Maximum XOR for Each QuerySolve
Meeting Rooms IIISolve
Merge IntervalsSolve
Merge k Sorted ListsSolve
Min StackSolve
Minimum Absolute Sum DifferenceSolve
Minimum Number of Operations to Make Array ContinuousSolve
Minimum Operations to Make Binary Array Elements Equal to One ISolve
Minimum Operations to Make Binary Array Elements Equal to One IISolve
Minimum Score Triangulation of PolygonSolve
Minimum Sum of Squared DifferenceSolve
Minimum Time to Complete TripsSolve
Move ZeroesSolve
Nearest Exit from Entrance in MazeSolve
Next PermutationSolve
Number of Black BlocksSolve
Number of Matching SubsequencesSolve
Number of Nodes in the Sub-Tree With the Same LabelSolve
Number of People That Can Be Seen in a GridSolve
Number of Strings That Appear as Substrings in WordSolve
Number of Ways to Reach Destination in the GridSolve
Number Of Ways To Reconstruct A TreeSolve
One Edit DistanceSolve
Open the LockSolve
Optimal Account BalancingSolve
Palindrome PermutationSolve
Parallel CoursesSolve
Patching ArraySolve
Points That Intersect With CarsSolve
Random Pick with BlacklistSolve
Regions Cut By SlashesSolve
Regular Expression MatchingSolve
Remove ElementSolve
Remove Max Number of Edges to Keep Graph Fully TraversableSolve
Remove Zero Sum Consecutive Nodes from Linked ListSolve
Replace WordsSolve
Reverse IntegerSolve
Reverse Linked ListSolve
Reverse Words in a String IISolve
Roman to IntegerSolve
Rotate ImageSolve
Rotting OrangesSolve
Search in Rotated Sorted ArraySolve
Sqrt(x)Solve
String to Integer (atoi)Solve
SubsetsSolve
Sudoku SolverSolve
Swap Nodes in PairsSolve
The Maze IISolve
Trapping Rain WaterSolve
Trips and UsersSolve
Valid PalindromeSolve
Walls and GatesSolve
Word Break IISolve
Word PatternSolve
Word Pattern IISolve
01 MatrixSolve
3SumSolve
Add DigitsSolve
Amount of Time for Binary Tree to Be InfectedSolve
Analyze User Website Visit PatternSolve
Basic Calculator IISolve
Boundary of Binary TreeSolve
Brightest Position on StreetSolve
Burst BalloonsSolve
CandySolve
Candy CrushSolve
Climbing StairsSolve
Collect Coins in a TreeSolve
Container With Most WaterSolve
Contains DuplicateSolve
Count Nice Pairs in an ArraySolve
Count the Number of Good SubarraysSolve
Create Hello World FunctionSolve
Custom Sort StringSolve
Design File SystemSolve
Design Memory AllocatorSolve
Design Parking SystemSolve
Detonate the Maximum BombsSolve
Divide Two IntegersSolve
Exam RoomSolve
Final Prices With a Special Discount in a ShopSolve
Find Minimum in Rotated Sorted ArraySolve
Find the Length of the Longest Common PrefixSolve
Frequency of the Most Frequent ElementSolve
Is Graph Bipartite?Solve
Kth Largest Element in an ArraySolve
Length of Longest Subarray With at Most K FrequencySolve
LFU CacheSolve
Longest Common PrefixSolve
Longest Increasing Path in a MatrixSolve
Longest Increasing SubsequenceSolve
Longest Palindromic SubstringSolve
Longest Path With Different Adjacent CharactersSolve
Longest Repeating Character ReplacementSolve
Longest Substring Without Repeating CharactersSolve
Longest Valid ParenthesesSolve
Maximum Earnings From TaxiSolve
Maximum SubarraySolve
Median of Two Sorted ArraysSolve
Merge Sorted ArraySolve
Merge Two Sorted ListsSolve
Min Cost to Connect All PointsSolve
Minimum Absolute Difference Between Elements With ConstraintSolve
Minimum Cost For TicketsSolve
Minimum Cost to Make at Least One Valid Path in a GridSolve
Minimum Edge Reversals So Every Node Is ReachableSolve
Minimum Operations to Reduce an Integer to 0Solve
Minimum Path SumSolve
Next Greater Element ISolve
Number of Adjacent Elements With the Same ColorSolve
Number of Flowers in Full BloomSolve
Number of ProvincesSolve
Pacific Atlantic Water FlowSolve
Plus OneSolve
Power of TwoSolve
Reconstruct ItinerarySolve
Remove Duplicates from Sorted ArraySolve
Replace Non-Coprime Numbers in ArraySolve
Rotate ArraySolve
Rotated DigitsSolve
Sliding PuzzleSolve
Sliding Window MaximumSolve
Smallest String With SwapsSolve
Split Array Largest SumSolve
Subarray Sum Equals KSolve
Subarray Sums Divisible by KSolve
Subarrays with K Different IntegersSolve
Task SchedulerSolve
The Skyline ProblemSolve
Time Needed to Buy TicketsSolve
Unique Number of OccurrencesSolve
Valid ParenthesesSolve
Verifying an Alien DictionarySolve
Water and Jug ProblemSolve
Word LadderSolve
Word Ladder IISolve
Zigzag ConversionSolve
24 GameSolve
Add BinarySolve
Add StringsSolve
Amount of New Area Painted Each DaySolve
Binary Tree Maximum Path SumSolve
Contiguous ArraySolve
Count Prefix and Suffix Pairs IISolve
Create a DataFrame from ListSolve
Design Browser HistorySolve
Design Search Autocomplete SystemSolve
Find Critical and Pseudo-Critical Edges in Minimum Spanning TreeSolve
Find Eventual Safe StatesSolve
Find K Closest ElementsSolve
Find the Index of the First Occurrence in a StringSolve
Find the Most Competitive SubsequenceSolve
Furthest Building You Can ReachSolve
Get Biggest Three Rhombus Sums in a GridSolve
Graph Connectivity With ThresholdSolve
House Robber IISolve
Increasing Triplet SubsequenceSolve
Intersection of Two ArraysSolve
Is SubsequenceSolve
Largest 1-Bordered SquareSolve
Largest Divisible SubsetSolve
Maximum Frequency StackSolve
Maximum Points You Can Obtain from CardsSolve
Meeting RoomsSolve
Minimum Number of Taps to Open to Water a GardenSolve
Minimum Size Subarray SumSolve
Monthly Transactions ISolve
Most Profitable Path in a TreeSolve
Next Greater Element IISolve
Number of Subarrays That Match a Pattern ISolve
Number of Subarrays with Bounded MaximumSolve
Ones and ZeroesSolve
Palindrome NumberSolve
PermutationsSolve
Possible BipartitionSolve
Predict the WinnerSolve
Put Marbles in BagsSolve
Recyclable and Low Fat ProductsSolve
Remove CommentsSolve
Reorganize StringSolve
Russian Doll EnvelopesSolve
Search a 2D Matrix IISolve
Shortest PalindromeSolve
Shortest Path in Binary MatrixSolve
Simplify PathSolve
Sort Characters By FrequencySolve
Stone Game IISolve
String CompressionSolve
Surrounded RegionsSolve
Validate Binary Search TreeSolve
2 Keys KeyboardSolve
3Sum ClosestSolve
All Nodes Distance K in Binary TreeSolve
Assign CookiesSolve
Average Time of Process per MachineSolve
Best Position for a Service CentreSolve
Best Time to Buy and Sell Stock IISolve
Best Time to Buy and Sell Stock IVSolve
Binary Search Tree IteratorSolve
Binary Tree Level Order TraversalSolve
Binary Tree Longest Consecutive Sequence IISolve
Binary WatchSolve
Cache With Time LimitSolve
Can I WinSolve
Capacity To Ship Packages Within D DaysSolve
Cheapest Flights Within K StopsSolve
Check if Array Is Sorted and RotatedSolve
Check if the Rectangle Corner Is ReachableSolve
Cherry Pickup IISolve
Combination Sum IISolve
Complete Binary Tree InserterSolve
Consecutive NumbersSolve
Construct Binary Tree from Preorder and Inorder TraversalSolve
Continuous SubarraysSolve
Convert an Array Into a 2D Array With ConditionsSolve
Count Different Palindromic SubsequencesSolve
Count Integers in IntervalsSolve
Count Number of TeamsSolve
Count Palindromic SubsequencesSolve
Count Paths That Can Form a Palindrome in a TreeSolve
Counting BitsSolve
Create Target Array in the Given OrderSolve
Decode StringSolve
Design a Text EditorSolve
Design Snake GameSolve
Design TwitterSolve
Diameter of Binary TreeSolve
Elimination GameSolve
Employee BonusSolve
Expressive WordsSolve
Find Customer RefereeSolve
Find K-th Smallest Pair DistanceSolve
Find the CelebritySolve
Find the Duplicate NumberSolve
Find the Maximum Length of Valid Subsequence IISolve
First Missing PositiveSolve
Freedom TrailSolve
H-IndexSolve
Human Traffic of StadiumSolve
Insert Delete GetRandom O(1) - Duplicates allowedSolve
Integer ReplacementSolve
Intersection of Two Linked ListsSolve
Isomorphic StringsSolve
Kth Missing Positive NumberSolve
Kth Smallest Number in Multiplication TableSolve
Largest Plus SignSolve
Last Person to Fit in the BusSolve
Lemonade ChangeSolve
Length of Last WordSolve
Linked List CycleSolve
Longest Arithmetic SubsequenceSolve
Magnetic Force Between Two BallsSolve
Majority ElementSolve
Matchsticks to SquareSolve
Max Area of IslandSolve
Maximize Sum Of Array After K NegationsSolve
Maximum Average Subarray ISolve
Maximum Manhattan Distance After K ChangesSolve
Maximum Number of Accepted InvitationsSolve
Maximum Number of Events That Can Be AttendedSolve
Maximum Profit in Job SchedulingSolve
Maximum Sum Circular SubarraySolve
Maximum Width of Binary TreeSolve
Maximum Width RampSolve
Meeting SchedulerSolve
Middle of the Linked ListSolve
Minimize Malware SpreadSolve
Minimize Malware Spread IISolve
Minimum Cost to Merge StonesSolve
Minimum Depth of Binary TreeSolve
Minimum Number of Changes to Make Binary String BeautifulSolve
My Calendar IISolve
N-QueensSolve
Nth DigitSolve
Number of Distinct Substrings in a StringSolve
Number of Recent CallsSolve
Paint HouseSolve
Palindrome Linked ListSolve
Palindrome PartitioningSolve
Promise PoolSolve
Random Point in Non-overlapping RectanglesSolve
Ransom NoteSolve
Remove Duplicates from Sorted Array IISolve
Remove Nth Node From End of ListSolve
Remove Outermost ParenthesesSolve
Reorder ListSolve
Repeated String MatchSolve
Replace Employee ID With The Unique IdentifierSolve
Reverse Nodes in k-GroupSolve
Reverse Vowels of a StringSolve
Robot Room CleanerSolve
Search a 2D MatrixSolve
Search in Rotated Sorted Array IISolve
Search Insert PositionSolve
Search Suggestions SystemSolve
Sequential DigitsSolve
Set Intersection Size At Least TwoSolve
Set Matrix ZeroesSolve
Shortest Path in a Grid with Obstacles EliminationSolve
Shuffle the ArraySolve
Simple Bank SystemSolve
Spiral Matrix IIISolve
Strange PrinterSolve
Strobogrammatic NumberSolve
Strobogrammatic Number IISolve
Sum of Distances in TreeSolve
Sum of Left LeavesSolve
Summary RangesSolve
Swim in Rising WaterSolve
Task Scheduler IISolve
Triangle JudgementSolve
Ugly NumberSolve
Valid Mountain ArraySolve
Valid Palindrome IISolve
Valid Parenthesis StringSolve