grindmapcompany-wise LeetCode
All companies

Uber LeetCode Questions

362 questions all-time · 45 easy · 215 medium · 102 hard
# Problem Difficulty Frequency Acceptance
1Bus Routes
Hard
100
0.5%
2Alien Dictionary
Hard
94
0.4%
3Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
Medium
94
0.6%
4Number of Islands
Medium
90
0.6%
5Number of Islands II
Hard
88
0.4%
6Squares of a Sorted Array
Easy
86
0.7%
7Construct Quad Tree
Medium
85
0.8%
8Kth Smallest Element in a BST
Medium
82
0.8%
9First Unique Number
Medium
81
0.6%
10Find the Closest Palindrome
Hard
81
0.3%
11Word Search
Medium
77
0.5%
12LRU Cache
Medium
77
0.5%
13Insert Delete GetRandom O(1)
Medium
77
0.6%
14Design Hit Counter
Medium
76
0.7%
15Word Search II
Hard
74
0.4%
16Minimum Edge Reversals So Every Node Is Reachable
Hard
74
0.6%
17Best Time to Buy and Sell Stock
Easy
72
0.6%
18My Calendar I
Medium
71
0.6%
19Product of Array Except Self
Medium
70
0.7%
20Evaluate Division
Medium
70
0.6%
21Random Pick with Weight
Medium
70
0.5%
22Count Paths That Can Form a Palindrome in a Tree
Hard
70
0.5%
23Text Justification
Hard
69
0.5%
24Leftmost Column with at Least a One
Medium
69
0.6%
25Block Placement Queries
Hard
68
0.4%
26Course Schedule II
Medium
66
0.6%
27Valid Sudoku
Medium
65
0.6%
28Spiral Matrix
Medium
65
0.6%
29Making A Large Island
Hard
65
0.6%
30Course Schedule
Medium
64
0.5%
31Find Minimum Time to Reach Last Room I
Medium
64
0.6%
32Letter Combinations of a Phone Number
Medium
63
0.7%
33Group Anagrams
Medium
63
0.7%
34Basic Calculator
Hard
63
0.5%
35Top K Frequent Words
Medium
63
0.6%
36Shortest Bridge
Medium
63
0.6%
37Word Break
Medium
62
0.5%
38Meeting Rooms II
Medium
62
0.5%
39Design In-Memory File System
Hard
62
0.5%
40Final Prices With a Special Discount in a Shop
Easy
62
0.8%
41Shuffle an Array
Medium
60
0.6%
42The Earliest Moment When Everyone Become Friends
Medium
60
0.7%
43Two Sum
Easy
59
0.6%
44Serialize and Deserialize Binary Tree
Hard
59
0.6%
45Escape the Spreading Fire
Hard
59
0.4%
46Split Message Based on Limit
Hard
59
0.4%
47Rotating the Box
Medium
59
0.8%
48Merge k Sorted Lists
Hard
58
0.6%
49Search in Rotated Sorted Array
Medium
58
0.5%
50Minimum Window Substring
Hard
58
0.5%
51Valid Anagram
Easy
58
0.7%
52Top K Frequent Elements
Medium
58
0.7%
53Cherry Pickup
Hard
58
0.4%
54Minimum Number of Operations to Make Array Continuous
Hard
58
0.5%
55Roman to Integer
Easy
56
0.7%
56All O`one Data Structure
Hard
56
0.4%
57The Maze
Medium
56
0.6%
58Minimum Time to Complete Trips
Medium
56
0.4%
59Divide Nodes Into the Maximum Number of Groups
Hard
56
0.7%
60Sudoku Solver
Hard
54
0.7%
61Decode Ways
Medium
54
0.4%
62House Robber III
Medium
54
0.6%
63Delete Node in a BST
Medium
54
0.5%
64Exclusive Time of Functions
Medium
54
0.7%
65Replace Words
Medium
54
0.7%
66Asteroid Collision
Medium
54
0.5%
67Koko Eating Bananas
Medium
54
0.5%
68Time Based Key-Value Store
Medium
54
0.5%
69Minimum Operations to Reduce an Integer to 0
Medium
54
0.6%
70String to Integer (atoi)
Medium
53
0.2%
71Regular Expression Matching
Hard
53
0.3%
72Combination Sum
Medium
53
0.8%
73Subsets
Medium
53
0.8%
74Valid Palindrome
Easy
53
0.5%
75Min Stack
Medium
53
0.6%
76Find Peak Element
Medium
53
0.5%
77Excel Sheet Column Number
Easy
53
0.7%
78Trips and Users
Hard
53
0.4%
79Coin Change
Medium
53
0.5%
80Find K Pairs with Smallest Sums
Medium
53
0.4%
81Split Array Largest Sum
Hard
53
0.6%
82Encode and Decode TinyURL
Medium
53
0.9%
83Regions Cut By Slashes
Medium
53
0.8%
84Rotting Oranges
Medium
53
0.6%
85Merge Strings Alternately
Easy
53
0.8%
86Maximum Subarray Min-Product
Medium
53
0.4%
87Meeting Rooms III
Hard
53
0.5%
88Check if a String Is an Acronym of Words
Easy
53
0.8%
89Points That Intersect With Cars
Easy
53
0.7%
90Minimum Operations to Write the Letter Y on a Grid
Medium
53
0.6%
91Maximize Amount After Two Days of Conversions
Medium
53
0.6%
92Maximum Coin Collection
Medium
53
0.5%
93The Maze II
Medium
53
0.6%
94Generate Parentheses
Medium
51
0.8%
95Swap Nodes in Pairs
Medium
51
0.7%
96Maximum Depth of Binary Tree
Easy
51
0.8%
97Clone Graph
Medium
51
0.7%
98Copy List with Random Pointer
Medium
51
0.6%
99Word Break II
Hard
51
0.6%
100One Edit Distance
Medium
51
0.3%
101Reverse Words in a String II
Medium
51
0.6%
102Happy Number
Easy
51
0.6%
103Reverse Linked List
Easy
51
0.8%
104Implement Trie (Prefix Tree)
Medium
51
0.7%
105Group Shifted Strings
Medium
51
0.7%
106Factor Combinations
Medium
51
0.5%
107Palindrome Permutation
Easy
51
0.7%
108Word Pattern
Easy
51
0.4%
109Word Pattern II
Medium
51
0.5%
110Optimal Account Balancing
Hard
51
0.5%
111Longest Palindromic Subsequence
Medium
51
0.7%
112Employee Importance
Medium
51
0.7%
113Falling Squares
Hard
51
0.5%
114Flood Fill
Easy
51
0.7%
115Random Pick with Blacklist
Hard
51
0.4%
116Fixed Point
Easy
51
0.6%
117Parallel Courses
Medium
51
0.6%
118Minimum Score Triangulation of Polygon
Medium
51
0.7%
119Remove Zero Sum Consecutive Nodes from Linked List
Medium
51
0.5%
120Find the City With the Smallest Number of Neighbors at a Threshold Distance
Medium
51
0.7%
121Find the Distance Value Between Two Arrays
Easy
51
0.7%
122Construct K Palindrome Strings
Medium
51
0.7%
123Course Schedule IV
Medium
51
0.6%
124Number of Nodes in the Sub-Tree With the Same Label
Medium
51
0.6%
125Remove Max Number of Edges to Keep Graph Fully Traversable
Hard
51
0.7%
126Hopper Company Queries I
Hard
51
0.5%
127Hopper Company Queries II
Hard
51
0.4%
128Hopper Company Queries III
Hard
51
0.7%
129Number Of Ways To Reconstruct A Tree
Hard
51
0.5%
130Maximum Number of Eaten Apples
Medium
51
0.4%
131Maximum XOR for Each Query
Medium
51
0.8%
132Minimum Absolute Sum Difference
Medium
51
0.3%
133Nearest Exit from Entrance in Maze
Medium
51
0.5%
134Check for Contradictions in Equations
Hard
51
0.4%
135Array With Elements Not Equal to Average of Neighbors
Medium
51
0.5%
136Check If String Is a Prefix of Array
Easy
51
0.5%
137Number of Strings That Appear as Substrings in Word
Easy
51
0.8%
138Create Binary Tree From Descriptions
Medium
51
0.8%
139Intersection of Multiple Arrays
Easy
51
0.7%
140K Divisible Elements Subarrays
Medium
51
0.6%
141Calculate Digit Sum of a String
Easy
51
0.7%
142Minimum Sum of Squared Difference
Medium
51
0.3%
143Number of People That Can Be Seen in a Grid
Medium
51
0.5%
144Count Subarrays With Fixed Bounds
Hard
51
0.7%
145Maximize Win From Two Segments
Medium
51
0.4%
146Number of Ways to Reach Destination in the Grid
Hard
51
0.6%
147Find Pattern in Infinite Stream I
Medium
51
0.6%
148Find Pattern in Infinite Stream II
Hard
51
0.7%
149Maximum Increasing Triplet Value
Medium
51
0.4%
150Match Alphanumerical Pattern in Matrix I
Medium
51
0.7%
151Minimum Operations to Make Binary Array Elements Equal to One I
Medium
51
0.8%
152Minimum Operations to Make Binary Array Elements Equal to One II
Medium
51
0.7%
153Find the Number of Ways to Place People II
Hard
51
0.6%
154Find Minimum Time to Reach Last Room II
Medium
51
0.7%
155Binary Tree Right Side View
Medium
49
0.7%
156Open the Lock
Medium
49
0.6%
157Number of Black Blocks
Medium
49
0.4%
158Minimum Cost to Equalize Arrays Using Swaps
Medium
49
0.5%
159Merge Intervals
Medium
46
0.5%
160Largest Rectangle in Histogram
Hard
46
0.5%
161Word Ladder
Hard
46
0.5%
162Sliding Window Maximum
Hard
46
0.5%
163Find Median from Data Stream
Hard
46
0.5%
164Best Time to Buy and Sell Stock using Strategy
Medium
46
0.6%
165Rotate Image
Medium
43
0.8%
166Dungeon Game
Hard
43
0.4%
167Find All Possible Recipes from Given Supplies
Medium
43
0.6%
168Subarray Sums Divisible by K
Medium
43
0.6%
169Boundary of Binary Tree
Medium
43
0.5%
170Longest Path With Different Adjacent Characters
Hard
43
0.5%
171Minimum Cost to Make at Least One Valid Path in a Grid
Hard
43
0.7%
172Trapping Rain Water
Hard
40
0.7%
173Insert Interval
Medium
40
0.5%
174Longest Consecutive Sequence
Medium
40
0.5%
175Candy
Hard
40
0.5%
176House Robber
Medium
40
0.5%
177Number of Matching Subsequences
Medium
40
0.5%
178Verifying an Alien Dictionary
Easy
40
0.6%
179Minimum Cost For Tickets
Medium
40
0.7%
180Collect Coins in a Tree
Hard
40
0.4%
181Design Memory Allocator
Medium
40
0.5%
182Basic Calculator II
Medium
40
0.5%
183Longest Palindromic Substring
Medium
37
0.4%
184Find First and Last Position of Element in Sorted Array
Medium
37
0.5%
185Binary Tree Maximum Path Sum
Hard
37
0.4%
186The Skyline Problem
Hard
37
0.5%
187Longest Increasing Path in a Matrix
Hard
37
0.6%
188Reconstruct Itinerary
Hard
37
0.4%
189LFU Cache
Hard
37
0.5%
190Task Scheduler
Medium
37
0.6%
191Sliding Puzzle
Hard
37
0.7%
192Min Cost to Connect All Points
Medium
37
0.7%
193Most Profitable Path in a Tree
Medium
37
0.7%
194Brightest Position on Street
Medium
37
0.6%
195Number of Adjacent Elements With the Same Color
Medium
37
0.6%
196Number of Provinces
Medium
37
0.7%
19724 Game
Hard
37
0.6%
198Maximum Points You Can Obtain from Cards
Medium
37
0.6%
199Burst Balloons
Hard
37
0.6%
200Maximum Number of Points From Grid Queries
Hard
37
0.6%
201Longest Common Prefix
Easy
32
0.5%
202Next Permutation
Medium
32
0.5%
203Longest Valid Parentheses
Hard
32
0.4%
204Permutations
Medium
32
0.8%
205Maximum Subarray
Medium
32
0.5%
206Minimum Path Sum
Medium
32
0.7%
207Find Minimum in Rotated Sorted Array
Medium
32
0.5%
208Shortest Palindrome
Hard
32
0.4%
209Move Zeroes
Easy
32
0.6%
210Walls and Gates
Medium
32
0.6%
211Subarray Sum Equals K
Medium
32
0.5%
212Is Graph Bipartite?
Medium
32
0.6%
213Cheapest Flights Within K Stops
Medium
32
0.4%
214Exam Room
Medium
32
0.4%
215Interval List Intersections
Medium
32
0.7%
216Subarrays with K Different Integers
Hard
32
0.7%
217Count Nice Pairs in an Array
Medium
32
0.5%
218Maximum Earnings From Taxi
Medium
32
0.5%
219Number of Flowers in Full Bloom
Hard
32
0.6%
220Find the Length of the Longest Common Prefix
Medium
32
0.6%
221Smallest String With Swaps
Medium
32
0.6%
222Word Ladder II
Hard
32
0.3%
223Add Digits
Easy
32
0.7%
224Design File System
Medium
32
0.7%
225Water and Jug Problem
Medium
32
0.5%
226Rotated Digits
Medium
32
0.6%
227Detonate the Maximum Bombs
Medium
32
0.5%
228Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
Hard
32
0.7%
229Replace Non-Coprime Numbers in Array
Hard
32
0.6%
230Maximum Profit in Job Scheduling
Hard
32
0.5%
231Shortest Path to Get All Keys
Hard
32
0.5%
232Maximum Number of Alloys
Medium
32
0.4%
233Median of Two Sorted Arrays
Hard
27
0.5%
234Reverse Integer
Medium
27
0.3%
235Valid Parentheses
Easy
27
0.4%
236Remove Element
Easy
27
0.6%
237Sqrt(x)
Easy
27
0.4%
238Longest Repeating Character Replacement
Medium
27
0.6%
239Find Eventual Safe States
Medium
27
0.7%
240Capacity To Ship Packages Within D Days
Medium
27
0.7%
241Analyze User Website Visit Pattern
Medium
27
0.4%
242Minimum Number of Taps to Open to Water a Garden
Hard
27
0.5%
243Design Parking System
Easy
27
0.9%
244Furthest Building You Can Reach
Medium
27
0.5%
245Frequency of the Most Frequent Element
Medium
27
0.4%
246Count the Number of Good Subarrays
Medium
27
0.7%
247Put Marbles in Bags
Hard
27
0.7%
248Minimum Absolute Difference Between Elements With Constraint
Medium
27
0.4%
249Find the Most Competitive Subsequence
Medium
27
0.5%
250Design Browser History
Medium
27
0.8%
251Design Search Autocomplete System
Hard
27
0.5%
252Meeting Scheduler
Medium
27
0.6%
253Maximum Frequency Stack
Hard
27
0.7%
254Design a Text Editor
Hard
27
0.5%
255Remove Comments
Medium
27
0.4%
256Surrounded Regions
Medium
27
0.5%
257Number of Subarrays That Match a Pattern I
Medium
27
0.7%
258Cache With Time LimitMedium
27
0.8%
259Add Strings
Easy
27
0.5%
260Largest 1-Bordered Square
Medium
27
0.5%
261Graph Connectivity With Threshold
Hard
27
0.5%
262Simplify Path
Medium
27
0.5%
263Shortest Path in Binary Matrix
Medium
27
0.5%
264Random Point in Non-overlapping Rectangles
Medium
27
0.4%
265Maximum Number of Events That Can Be Attended
Medium
27
0.4%
266Count Primes
Medium
27
0.4%
267IPO
Hard
27
0.5%
268Design A Leaderboard
Medium
27
0.7%
269Minimum Jumps to Reach End via Prime Teleportation
Medium
27
0.4%
270Minimum Knight Moves
Medium
27
0.4%
271Count the Number of Infection Sequences
Hard
27
0.4%
272Binary Searchable Numbers in an Unsorted Array
Medium
27
0.6%
273Add Two Numbers
Medium
19
0.5%
274Longest Substring Without Repeating Characters
Medium
19
0.4%
275Container With Most Water
Medium
19
0.6%
276Remove Duplicates from Sorted Array
Easy
19
0.6%
277Climbing Stairs
Easy
19
0.5%
278Set Matrix Zeroes
Medium
19
0.6%
279Kth Largest Element in an Array
Medium
19
0.7%
280Search a 2D Matrix II
Medium
19
0.6%
281Longest Increasing Subsequence
Medium
19
0.6%
282Patching Array
Hard
19
0.5%
283Matchsticks to Square
Medium
19
0.4%
284Predict the Winner
Medium
19
0.6%
285Next Greater Element I
Easy
19
0.8%
286Freedom Trail
Hard
19
0.6%
28701 Matrix
Medium
19
0.5%
288Find K Closest Elements
Medium
19
0.5%
289Candy Crush
Medium
19
0.8%
290Swim in Rising Water
Hard
19
0.7%
291Possible Bipartition
Medium
19
0.5%
292Stone Game II
Medium
19
0.7%
293Simple Bank System
Medium
19
0.7%
294Time Needed to Buy Tickets
Easy
19
0.7%
295Amount of New Area Painted Each Day
Hard
19
0.6%
296Amount of Time for Binary Tree to Be Infected
Medium
19
0.7%
297House Robber II
Medium
19
0.5%
298Paint House
Medium
19
0.6%
299Get Biggest Three Rhombus Sums in a Grid
Medium
19
0.7%
300Meeting Rooms
Easy
19
0.6%
301Find the Celebrity
Medium
19
0.5%
302Count Different Palindromic Subsequences
Hard
19
0.5%
303Spiral Matrix III
Medium
19
0.8%
304Minimize Malware Spread
Hard
19
0.4%
305Minimize Malware Spread II
Hard
19
0.5%
306Count Palindromic Subsequences
Hard
19
0.4%
307Count Prefix and Suffix Pairs II
Hard
19
0.3%
308Number of Distinct Substrings in a String
Medium
19
0.6%
309Promise PoolMedium
19
0.8%
310Maximum Manhattan Distance After K Changes
Medium
19
0.5%
311Shortest Path in a Grid with Obstacles Elimination
Hard
19
0.5%
312Valid Palindrome II
Easy
19
0.4%
313Maximize Sum Of Array After K Negations
Easy
19
0.5%
314Number of Subarrays with Bounded Maximum
Medium
19
0.6%
315Design Snake Game
Medium
19
0.4%
316Reverse Nodes in k-Group
Hard
19
0.7%
317Find the Maximum Length of Valid Subsequence II
Medium
19
0.6%
318Integer Replacement
Medium
19
0.4%
3192 Keys Keyboard
Medium
19
0.6%
320Binary Tree Longest Consecutive Sequence II
Medium
19
0.5%
321Maximum Average Subarray I
Easy
19
0.5%
322Ones and Zeroes
Medium
19
0.5%
323Count Integers in Intervals
Hard
19
0.4%
324Human Traffic of Stadium
Hard
19
0.5%
325Repeated String Match
Medium
19
0.4%
326Insert Delete GetRandom O(1) - Duplicates allowed
Hard
19
0.4%
327Find the Safest Path in a Grid
Medium
19
0.5%
328Closest Binary Search Tree Value
Easy
19
0.5%
329Accounts Merge
Medium
19
0.6%
330Minimum Difference in Sums After Removal of Elements
Hard
19
0.7%
331Linked List Components
Medium
19
0.6%
332Count Binary Substrings
Easy
19
0.7%
333Bomb Enemy
Medium
19
0.5%
334Find All People With Secret
Hard
19
0.5%
335Magnetic Force Between Two Balls
Medium
19
0.7%
336Rearranging Fruits
Hard
19
0.6%
337Process Restricted Friend Requests
Hard
19
0.6%
338Longest Subsequence With Limited Sum
Easy
19
0.7%
339Vertical Order Traversal of a Binary Tree
Hard
19
0.5%
340Checking Existence of Edge Length Limited Paths
Hard
19
0.6%
341Find K-th Smallest Pair Distance
Hard
19
0.5%
342Shortest Distance from All Buildings
Hard
19
0.4%
343Painting a Grid With Three Different Colors
Hard
19
0.8%
344Find All Anagrams in a String
Medium
19
0.5%
345Minimize the Maximum Edge Weight of Graph
Medium
19
0.4%
346Fizz Buzz
Easy
19
0.8%
347Find a Peak Element II
Medium
19
0.6%
348Next Greater Element II
Medium
19
0.7%
349Graph Valid Tree
Medium
19
0.5%
350Populating Next Right Pointers in Each Node II
Medium
19
0.6%
351Minimum Fuel Cost to Report to the Capital
Medium
19
0.7%
352Number of Ways to Form a Target String Given a Dictionary
Hard
19
0.6%
353Search a 2D Matrix
Medium
19
0.5%
354Search Suggestions System
Medium
19
0.7%
355Zero Array Transformation II
Medium
19
0.4%
356Remove Sub-Folders from the Filesystem
Medium
19
0.8%
357Goat Latin
Easy
19
0.7%
358Make Lexicographically Smallest Array by Swapping Elements
Medium
19
0.6%
359Number of Wonderful Substrings
Medium
19
0.7%
360Minimum Number of Refueling Stops
Hard
19
0.4%
361Sort Colors
Medium
19
0.7%
362Design Twitter
Medium
19
0.4%

How to read this list

The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.

Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.

Similar companies