Uber
362 LeetCode interview questions
Curated Lists
Categories
All Questions
Topics
- Bus RoutesHard0.5%100.0%
- Alien DictionaryHard0.4%93.5%
- Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMedium0.6%93.5%
- Number of IslandsMedium0.6%89.6%
- Number of Islands IIHard0.4%88.0%
- Squares of a Sorted ArrayEasy0.7%85.6%
- Construct Quad TreeMedium0.8%85.2%
- Kth Smallest Element in a BSTMedium0.8%82.4%
- First Unique NumberMedium0.6%81.0%
- Find the Closest PalindromeHard0.3%80.5%
- Word SearchMedium0.5%76.9%
- LRU CacheMedium0.5%76.9%
- Insert Delete GetRandom O(1)Medium0.6%76.9%
- Design Hit CounterMedium0.7%76.3%
- Word Search IIHard0.4%73.8%
- Minimum Edge Reversals So Every Node Is ReachableHard0.6%73.8%
- Best Time to Buy and Sell StockEasy0.6%71.7%
- My Calendar IMedium0.6%71.0%
- Product of Array Except SelfMedium0.7%70.2%
- Evaluate DivisionMedium0.6%70.2%
- Random Pick with WeightMedium0.5%70.2%
- Count Paths That Can Form a Palindrome in a TreeHard0.5%70.2%
- Text JustificationHard0.5%69.4%
- Leftmost Column with at Least a OneMedium0.6%68.6%
- Block Placement QueriesHard0.4%67.7%
- Course Schedule IIMedium0.6%65.8%
- Valid SudokuMedium0.6%64.8%
- Spiral MatrixMedium0.6%64.8%
- Making A Large IslandHard0.6%64.8%
- Course ScheduleMedium0.5%63.8%
- Find Minimum Time to Reach Last Room IMedium0.6%63.8%
- Letter Combinations of a Phone NumberMedium0.7%62.7%
- Group AnagramsMedium0.7%62.7%
- Basic CalculatorHard0.5%62.7%
- Top K Frequent WordsMedium0.6%62.7%
- Shortest BridgeMedium0.6%62.7%
- Word BreakMedium0.5%61.5%
- Meeting Rooms IIMedium0.5%61.5%
- Design In-Memory File SystemHard0.5%61.5%
- Final Prices With a Special Discount in a ShopEasy0.8%61.5%
- Shuffle an ArrayMedium0.6%60.3%
- The Earliest Moment When Everyone Become FriendsMedium0.7%60.3%
- Two SumEasy0.6%58.9%
- Serialize and Deserialize Binary TreeHard0.6%58.9%
- Escape the Spreading FireHard0.4%58.9%
- Split Message Based on LimitHard0.4%58.9%
- Rotating the BoxMedium0.8%58.9%
- Merge k Sorted ListsHard0.6%57.5%
- Search in Rotated Sorted ArrayMedium0.5%57.5%
- Minimum Window SubstringHard0.5%57.5%
- Valid AnagramEasy0.7%57.5%
- Top K Frequent ElementsMedium0.7%57.5%
- Cherry PickupHard0.4%57.5%
- Minimum Number of Operations to Make Array ContinuousHard0.5%57.5%
- Roman to IntegerEasy0.7%56.0%
- All O`one Data StructureHard0.4%56.0%
- The MazeMedium0.6%56.0%
- Minimum Time to Complete TripsMedium0.4%56.0%
- Divide Nodes Into the Maximum Number of GroupsHard0.7%56.0%
- Sudoku SolverHard0.7%54.4%
- Decode WaysMedium0.4%54.4%
- House Robber IIIMedium0.6%54.4%
- Delete Node in a BSTMedium0.5%54.4%
- Exclusive Time of FunctionsMedium0.7%54.4%
- Replace WordsMedium0.7%54.4%
- Asteroid CollisionMedium0.5%54.4%
- Koko Eating BananasMedium0.5%54.4%
- Time Based Key-Value StoreMedium0.5%54.4%
- Minimum Operations to Reduce an Integer to 0Medium0.6%54.4%
- String to Integer (atoi)Medium0.2%52.6%
- Regular Expression MatchingHard0.3%52.6%
- Combination SumMedium0.8%52.6%
- SubsetsMedium0.8%52.6%
- Valid PalindromeEasy0.5%52.6%
- Min StackMedium0.6%52.6%
- Find Peak ElementMedium0.5%52.6%
- Excel Sheet Column NumberEasy0.7%52.6%
- Trips and UsersHard0.4%52.6%
- Coin ChangeMedium0.5%52.6%
- Find K Pairs with Smallest SumsMedium0.4%52.6%
- Split Array Largest SumHard0.6%52.6%
- Encode and Decode TinyURLMedium0.9%52.6%
- Regions Cut By SlashesMedium0.8%52.6%
- Rotting OrangesMedium0.6%52.6%
- Merge Strings AlternatelyEasy0.8%52.6%
- Maximum Subarray Min-ProductMedium0.4%52.6%
- Meeting Rooms IIIHard0.5%52.6%
- Check if a String Is an Acronym of WordsEasy0.8%52.6%
- Points That Intersect With CarsEasy0.7%52.6%
- Minimum Operations to Write the Letter Y on a GridMedium0.6%52.6%
- Maximize Amount After Two Days of ConversionsMedium0.6%52.6%
- Maximum Coin CollectionMedium0.5%52.6%
- The Maze IIMedium0.6%52.6%
- Generate ParenthesesMedium0.8%50.6%
- Swap Nodes in PairsMedium0.7%50.6%
- Maximum Depth of Binary TreeEasy0.8%50.6%
- Clone GraphMedium0.7%50.6%
- Copy List with Random PointerMedium0.6%50.6%
- Word Break IIHard0.6%50.6%
- One Edit DistanceMedium0.3%50.6%
- Reverse Words in a String IIMedium0.6%50.6%
- Happy NumberEasy0.6%50.6%
- Reverse Linked ListEasy0.8%50.6%
- Implement Trie (Prefix Tree)Medium0.7%50.6%
- Group Shifted StringsMedium0.7%50.6%
- Factor CombinationsMedium0.5%50.6%
- Palindrome PermutationEasy0.7%50.6%
- Word PatternEasy0.4%50.6%
- Word Pattern IIMedium0.5%50.6%
- Optimal Account BalancingHard0.5%50.6%
- Longest Palindromic SubsequenceMedium0.7%50.6%
- Employee ImportanceMedium0.7%50.6%
- Falling SquaresHard0.5%50.6%
- Flood FillEasy0.7%50.6%
- Random Pick with BlacklistHard0.4%50.6%
- Fixed PointEasy0.6%50.6%
- Parallel CoursesMedium0.6%50.6%
- Minimum Score Triangulation of PolygonMedium0.7%50.6%
- Remove Zero Sum Consecutive Nodes from Linked ListMedium0.5%50.6%
- Find the City With the Smallest Number of Neighbors at a Threshold DistanceMedium0.7%50.6%
- Find the Distance Value Between Two ArraysEasy0.7%50.6%
- Construct K Palindrome StringsMedium0.7%50.6%
- Course Schedule IVMedium0.6%50.6%
- Number of Nodes in the Sub-Tree With the Same LabelMedium0.6%50.6%
- Remove Max Number of Edges to Keep Graph Fully TraversableHard0.7%50.6%
- Hopper Company Queries IHard0.5%50.6%
- Hopper Company Queries IIHard0.4%50.6%
- Hopper Company Queries IIIHard0.7%50.6%
- Number Of Ways To Reconstruct A TreeHard0.5%50.6%
- Maximum Number of Eaten ApplesMedium0.4%50.6%
- Maximum XOR for Each QueryMedium0.8%50.6%
- Minimum Absolute Sum DifferenceMedium0.3%50.6%
- Nearest Exit from Entrance in MazeMedium0.5%50.6%
- Check for Contradictions in EquationsHard0.4%50.6%
- Array With Elements Not Equal to Average of NeighborsMedium0.5%50.6%
- Check If String Is a Prefix of ArrayEasy0.5%50.6%
- Number of Strings That Appear as Substrings in WordEasy0.8%50.6%
- Create Binary Tree From DescriptionsMedium0.8%50.6%
- Intersection of Multiple ArraysEasy0.7%50.6%
- K Divisible Elements SubarraysMedium0.6%50.6%
- Calculate Digit Sum of a StringEasy0.7%50.6%
- Minimum Sum of Squared DifferenceMedium0.3%50.6%
- Number of People That Can Be Seen in a GridMedium0.5%50.6%
- Count Subarrays With Fixed BoundsHard0.7%50.6%
- Maximize Win From Two SegmentsMedium0.4%50.6%
- Number of Ways to Reach Destination in the GridHard0.6%50.6%
- Find Pattern in Infinite Stream IMedium0.6%50.6%
- Find Pattern in Infinite Stream IIHard0.7%50.6%
- Maximum Increasing Triplet ValueMedium0.4%50.6%
- Match Alphanumerical Pattern in Matrix IMedium0.7%50.6%
- Minimum Operations to Make Binary Array Elements Equal to One IMedium0.8%50.6%
- Minimum Operations to Make Binary Array Elements Equal to One IIMedium0.7%50.6%
- Find the Number of Ways to Place People IIHard0.6%50.6%
- Find Minimum Time to Reach Last Room IIMedium0.7%50.6%
- Binary Tree Right Side ViewMedium0.7%48.5%
- Open the LockMedium0.6%48.5%
- Number of Black BlocksMedium0.4%48.5%
- Minimum Cost to Equalize Arrays Using SwapsMedium0.5%48.5%
- Merge IntervalsMedium0.5%46.1%
- Largest Rectangle in HistogramHard0.5%46.1%
- Word LadderHard0.5%46.1%
- Sliding Window MaximumHard0.5%46.1%
- Find Median from Data StreamHard0.5%46.1%
- Best Time to Buy and Sell Stock using StrategyMedium0.6%46.1%
- Rotate ImageMedium0.8%43.4%
- Dungeon GameHard0.4%43.4%
- Find All Possible Recipes from Given SuppliesMedium0.6%43.4%
- Subarray Sums Divisible by KMedium0.6%43.4%
- Boundary of Binary TreeMedium0.5%43.4%
- Longest Path With Different Adjacent CharactersHard0.5%43.4%
- Minimum Cost to Make at Least One Valid Path in a GridHard0.7%43.4%
- Trapping Rain WaterHard0.7%40.3%
- Insert IntervalMedium0.5%40.3%
- Longest Consecutive SequenceMedium0.5%40.3%
- CandyHard0.5%40.3%
- House RobberMedium0.5%40.3%
- Number of Matching SubsequencesMedium0.5%40.3%
- Verifying an Alien DictionaryEasy0.6%40.3%
- Minimum Cost For TicketsMedium0.7%40.3%
- Collect Coins in a TreeHard0.4%40.3%
- Design Memory AllocatorMedium0.5%40.3%
- Basic Calculator IIMedium0.5%40.3%
- Longest Palindromic SubstringMedium0.4%36.6%
- Find First and Last Position of Element in Sorted ArrayMedium0.5%36.6%
- Binary Tree Maximum Path SumHard0.4%36.6%
- The Skyline ProblemHard0.5%36.6%
- Longest Increasing Path in a MatrixHard0.6%36.6%
- Reconstruct ItineraryHard0.4%36.6%
- LFU CacheHard0.5%36.6%
- Task SchedulerMedium0.6%36.6%
- Sliding PuzzleHard0.7%36.6%
- Min Cost to Connect All PointsMedium0.7%36.6%
- Most Profitable Path in a TreeMedium0.7%36.6%
- Brightest Position on StreetMedium0.6%36.6%
- Number of Adjacent Elements With the Same ColorMedium0.6%36.6%
- Number of ProvincesMedium0.7%36.6%
- 24 GameHard0.6%36.6%
- Maximum Points You Can Obtain from CardsMedium0.6%36.6%
- Burst BalloonsHard0.6%36.6%
- Maximum Number of Points From Grid QueriesHard0.6%36.6%
- Longest Common PrefixEasy0.5%32.2%
- Next PermutationMedium0.5%32.2%
- Longest Valid ParenthesesHard0.4%32.2%
- PermutationsMedium0.8%32.2%
- Maximum SubarrayMedium0.5%32.2%
- Minimum Path SumMedium0.7%32.2%
- Find Minimum in Rotated Sorted ArrayMedium0.5%32.2%
- Shortest PalindromeHard0.4%32.2%
- Move ZeroesEasy0.6%32.2%
- Walls and GatesMedium0.6%32.2%
- Subarray Sum Equals KMedium0.5%32.2%
- Is Graph Bipartite?Medium0.6%32.2%
- Cheapest Flights Within K StopsMedium0.4%32.2%
- Exam RoomMedium0.4%32.2%
- Interval List IntersectionsMedium0.7%32.2%
- Subarrays with K Different IntegersHard0.7%32.2%
- Count Nice Pairs in an ArrayMedium0.5%32.2%
- Maximum Earnings From TaxiMedium0.5%32.2%
- Number of Flowers in Full BloomHard0.6%32.2%
- Find the Length of the Longest Common PrefixMedium0.6%32.2%
- Smallest String With SwapsMedium0.6%32.2%
- Word Ladder IIHard0.3%32.2%
- Add DigitsEasy0.7%32.2%
- Design File SystemMedium0.7%32.2%
- Water and Jug ProblemMedium0.5%32.2%
- Rotated DigitsMedium0.6%32.2%
- Detonate the Maximum BombsMedium0.5%32.2%
- Find Critical and Pseudo-Critical Edges in Minimum Spanning TreeHard0.7%32.2%
- Replace Non-Coprime Numbers in ArrayHard0.6%32.2%
- Maximum Profit in Job SchedulingHard0.5%32.2%
- Shortest Path to Get All KeysHard0.5%32.2%
- Maximum Number of AlloysMedium0.4%32.2%
- Median of Two Sorted ArraysHard0.5%26.6%
- Reverse IntegerMedium0.3%26.6%
- Valid ParenthesesEasy0.4%26.6%
- Remove ElementEasy0.6%26.6%
- Sqrt(x)Easy0.4%26.6%
- Longest Repeating Character ReplacementMedium0.6%26.6%
- Find Eventual Safe StatesMedium0.7%26.6%
- Capacity To Ship Packages Within D DaysMedium0.7%26.6%
- Analyze User Website Visit PatternMedium0.4%26.6%
- Minimum Number of Taps to Open to Water a GardenHard0.5%26.6%
- Design Parking SystemEasy0.9%26.6%
- Furthest Building You Can ReachMedium0.5%26.6%
- Frequency of the Most Frequent ElementMedium0.4%26.6%
- Count the Number of Good SubarraysMedium0.7%26.6%
- Put Marbles in BagsHard0.7%26.6%
- Minimum Absolute Difference Between Elements With ConstraintMedium0.4%26.6%
- Find the Most Competitive SubsequenceMedium0.5%26.6%
- Design Browser HistoryMedium0.8%26.6%
- Design Search Autocomplete SystemHard0.5%26.6%
- Meeting SchedulerMedium0.6%26.6%
- Maximum Frequency StackHard0.7%26.6%
- Design a Text EditorHard0.5%26.6%
- Remove CommentsMedium0.4%26.6%
- Surrounded RegionsMedium0.5%26.6%
- Number of Subarrays That Match a Pattern IMedium0.7%26.6%
- Cache With Time LimitMedium0.8%26.6%
- Add StringsEasy0.5%26.6%
- Largest 1-Bordered SquareMedium0.5%26.6%
- Graph Connectivity With ThresholdHard0.5%26.6%
- Simplify PathMedium0.5%26.6%
- Shortest Path in Binary MatrixMedium0.5%26.6%
- Random Point in Non-overlapping RectanglesMedium0.4%26.6%
- Maximum Number of Events That Can Be AttendedMedium0.4%26.6%
- Count PrimesMedium0.4%26.6%
- IPOHard0.5%26.6%
- Design A LeaderboardMedium0.7%26.6%
- Minimum Jumps to Reach End via Prime TeleportationMedium0.4%26.6%
- Minimum Knight MovesMedium0.4%26.6%
- Count the Number of Infection SequencesHard0.4%26.6%
- Binary Searchable Numbers in an Unsorted ArrayMedium0.6%26.6%
- Add Two NumbersMedium0.5%19.2%
- Longest Substring Without Repeating CharactersMedium0.4%19.2%
- Container With Most WaterMedium0.6%19.2%
- Remove Duplicates from Sorted ArrayEasy0.6%19.2%
- Climbing StairsEasy0.5%19.2%
- Set Matrix ZeroesMedium0.6%19.2%
- Kth Largest Element in an ArrayMedium0.7%19.2%
- Search a 2D Matrix IIMedium0.6%19.2%
- Longest Increasing SubsequenceMedium0.6%19.2%
- Patching ArrayHard0.5%19.2%
- Matchsticks to SquareMedium0.4%19.2%
- Predict the WinnerMedium0.6%19.2%
- Next Greater Element IEasy0.8%19.2%
- Freedom TrailHard0.6%19.2%
- 01 MatrixMedium0.5%19.2%
- Find K Closest ElementsMedium0.5%19.2%
- Candy CrushMedium0.8%19.2%
- Swim in Rising WaterHard0.7%19.2%
- Possible BipartitionMedium0.5%19.2%
- Stone Game IIMedium0.7%19.2%
- Simple Bank SystemMedium0.7%19.2%
- Time Needed to Buy TicketsEasy0.7%19.2%
- Amount of New Area Painted Each DayHard0.6%19.2%
- Amount of Time for Binary Tree to Be InfectedMedium0.7%19.2%
- House Robber IIMedium0.5%19.2%
- Paint HouseMedium0.6%19.2%
- Get Biggest Three Rhombus Sums in a GridMedium0.7%19.2%
- Meeting RoomsEasy0.6%19.2%
- Find the CelebrityMedium0.5%19.2%
- Count Different Palindromic SubsequencesHard0.5%19.2%
- Spiral Matrix IIIMedium0.8%19.2%
- Minimize Malware SpreadHard0.4%19.2%
- Minimize Malware Spread IIHard0.5%19.2%
- Count Palindromic SubsequencesHard0.4%19.2%
- Count Prefix and Suffix Pairs IIHard0.3%19.2%
- Number of Distinct Substrings in a StringMedium0.6%19.2%
- Promise PoolMedium0.8%19.2%
- Maximum Manhattan Distance After K ChangesMedium0.5%19.2%
- Shortest Path in a Grid with Obstacles EliminationHard0.5%19.2%
- Valid Palindrome IIEasy0.4%19.2%
- Maximize Sum Of Array After K NegationsEasy0.5%19.2%
- Number of Subarrays with Bounded MaximumMedium0.6%19.2%
- Design Snake GameMedium0.4%19.2%
- Reverse Nodes in k-GroupHard0.7%19.2%
- Find the Maximum Length of Valid Subsequence IIMedium0.6%19.2%
- Integer ReplacementMedium0.4%19.2%
- 2 Keys KeyboardMedium0.6%19.2%
- Binary Tree Longest Consecutive Sequence IIMedium0.5%19.2%
- Maximum Average Subarray IEasy0.5%19.2%
- Ones and ZeroesMedium0.5%19.2%
- Count Integers in IntervalsHard0.4%19.2%
- Human Traffic of StadiumHard0.5%19.2%
- Repeated String MatchMedium0.4%19.2%
- Insert Delete GetRandom O(1) - Duplicates allowedHard0.4%19.2%
- Find the Safest Path in a GridMedium0.5%19.2%
- Closest Binary Search Tree ValueEasy0.5%19.2%
- Accounts MergeMedium0.6%19.2%
- Minimum Difference in Sums After Removal of ElementsHard0.7%19.2%
- Linked List ComponentsMedium0.6%19.2%
- Count Binary SubstringsEasy0.7%19.2%
- Bomb EnemyMedium0.5%19.2%
- Find All People With SecretHard0.5%19.2%
- Magnetic Force Between Two BallsMedium0.7%19.2%
- Rearranging FruitsHard0.6%19.2%
- Process Restricted Friend RequestsHard0.6%19.2%
- Longest Subsequence With Limited SumEasy0.7%19.2%
- Vertical Order Traversal of a Binary TreeHard0.5%19.2%
- Checking Existence of Edge Length Limited PathsHard0.6%19.2%
- Find K-th Smallest Pair DistanceHard0.5%19.2%
- Shortest Distance from All BuildingsHard0.4%19.2%
- Painting a Grid With Three Different ColorsHard0.8%19.2%
- Find All Anagrams in a StringMedium0.5%19.2%
- Minimize the Maximum Edge Weight of GraphMedium0.4%19.2%
- Fizz BuzzEasy0.8%19.2%
- Find a Peak Element IIMedium0.6%19.2%
- Next Greater Element IIMedium0.7%19.2%
- Graph Valid TreeMedium0.5%19.2%
- Populating Next Right Pointers in Each Node IIMedium0.6%19.2%
- Minimum Fuel Cost to Report to the CapitalMedium0.7%19.2%
- Number of Ways to Form a Target String Given a DictionaryHard0.6%19.2%
- Search a 2D MatrixMedium0.5%19.2%
- Search Suggestions SystemMedium0.7%19.2%
- Zero Array Transformation IIMedium0.4%19.2%
- Remove Sub-Folders from the FilesystemMedium0.8%19.2%
- Goat LatinEasy0.7%19.2%
- Make Lexicographically Smallest Array by Swapping ElementsMedium0.6%19.2%
- Number of Wonderful SubstringsMedium0.7%19.2%
- Minimum Number of Refueling StopsHard0.4%19.2%
- Sort ColorsMedium0.7%19.2%
- Design TwitterMedium0.4%19.2%
Showing 362 of 362 questions.