0% found this document useful (0 votes)
45 views23 pages

Uber - All Time

LeetCode has updated its algorithm for calculating company tags and their frequencies, which will now be more accurate and current, with weekly updates every Saturday. Users can filter problem results by different time periods and track their progress on solved problems. The document lists various coding problems along with their tags and acceptance rates.

Uploaded by

Shruti Gulati
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views23 pages

Uber - All Time

LeetCode has updated its algorithm for calculating company tags and their frequencies, which will now be more accurate and current, with weekly updates every Saturday. Users can filter problem results by different time periods and track their progress on solved problems. The document lists various coding problems along with their tags and acceptance rates.

Uploaded by

Shruti Gulati
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Explore

Problems
Interview
Contest
Discuss
Store

🔈 LeetCode is hiring! Apply NOW.🔈

0
72
Uber
Problems
Discuss
Notice
We've improved our algorithm that calculates company tags and their frequencies to
be more accurate and current.

This page updates weekly on Saturday.

You can filter the results by different time periods.

You have solved 53 / 464 problems.

Show problem tagsSelect time period:

All time

# Title Tags Acceptanc

815 Bus Routes ArrayHash TableBreadth-First Search 45.7%

427 Construct Quad Tree ArrayDivide and ConquerTreeMatrix 66.1%

465 Optimal Account Balancing ArrayDynamic ProgrammingBacktrackingBit 49.2%


ManipulationBitmask

529 Minesweeper ArrayDepth-First SearchBreadth-First SearchMatrix 65.2%

68 Text Justification ArrayStringSimulation 36.2%

332 Reconstruct Itinerary Depth-First SearchGraphEulerian Circuit 40.7%

291 Word Pattern II Hash TableStringBacktracking 46.8%

757 Set Intersection Size At Least ArrayGreedySorting 43.5%


Two

986 Interval List Intersections ArrayTwo Pointers 71.3%


# Title Tags Acceptanc

773 Sliding Puzzle ArrayBreadth-First SearchMatrix 63.6%

305 Number of Islands II ArrayUnion Find 39.5%

212 Word Search II ArrayStringBacktrackingTrieMatrix 37.2%

741 Cherry Pickup ArrayDynamic ProgrammingMatrix 36.3%

1400 Construct K Palindrome Strings Hash TableStringGreedyCounting 63.4%

341 Flatten Nested List Iterator StackTreeDepth-First SearchDesignQueueIterator 61.3%

631 Design Excel Sum Formula GraphDesignTopological Sort 43.0%

655 Print Binary Tree TreeDepth-First SearchBreadth-First SearchBinary Tree 61.0%

262 Trips and Users Database 38.3%

564 Find the Closest Palindrome MathString 21.8%

56 Merge Intervals ArraySorting 45.6%

428 Serialize and Deserialize N-ary StringTreeDepth-First SearchBreadth-First Search 65.0%


Tree

267 Palindrome Permutation II Hash TableStringBacktracking 40.3%

174 Dungeon Game ArrayDynamic ProgrammingMatrix 37.1%

855 Exam Room DesignOrdered Set 43.5%

146 LRU Cache Hash TableLinked ListDesignDoubly-Linked List 40.5%

399 Evaluate Division ArrayDepth-First SearchBreadth-First SearchUnion 59.2%


FindGraphShortest Path

297 Serialize and Deserialize Binary StringTreeDepth-First SearchBreadth-First 54.6%


Tree SearchDesignBinary Tree

361 Bomb Enemy ArrayDynamic ProgrammingMatrix 50.7%

679 24 Game ArrayMathBacktracking 49.1%

1438 Longest Continuous Subarray ArrayQueueSliding WindowHeap (Priority Queue)Ordered 47.7%


With Absolute Diff Less Than or SetMonotonic Queue
Equal to Limit

380 Insert Delete GetRandom O(1) ArrayHash TableMathDesignRandomized 51.8%


# Title Tags Acceptanc

642 Design Search Autocomplete StringDesignTrieData Stream 48.6%


System

227 Basic Calculator II MathStringStack 42.0%

1428 Leftmost Column with at Least a ArrayBinary SearchMatrixInteractive 52.9%


One

636 Exclusive Time of Functions ArrayStack 60.8%

42 Trapping Rain Water ArrayTwo PointersDynamic ProgrammingStackMonotonic 57.8%


Stack

253 Meeting Rooms II ArrayTwo PointersGreedySortingHeap (Priority Queue) 50.2%

1861 Rotating the Box ArrayTwo PointersMatrix 64.8%

528 Random Pick with Weight MathBinary SearchPrefix SumRandomized 46.2%

1 Two Sum ArrayHash Table 49.0%

269 Alien Dictionary ArrayStringDepth-First SearchBreadth-First 35.1%


SearchGraphTopological Sort

224 Basic Calculator MathStringStackRecursion 40.9%

1842 Next Palindrome Using Same Two PointersString 53.9%


Digits

36 Valid Sudoku ArrayHash TableMatrix 56.3%

126 Word Ladder II Hash TableStringBacktrackingBreadth-First Search 27.6%

17 Letter Combinations of a Phone Hash TableStringBacktracking 55.1%


Number

359 Logger Rate Limiter Hash TableDesign 75.4%

1515 Best Position for a Service MathGeometryRandomized 38.4%


Centre

79 Word Search ArrayBacktrackingMatrix 40.0%

772 Basic Calculator III MathStringStackRecursion 48.2%

273 Integer to English Words MathStringRecursion 29.8%

354 Russian Doll Envelopes ArrayBinary SearchDynamic ProgrammingSorting 38.5%


# Title Tags Acceptanc

139 Word Break Hash TableStringDynamic ProgrammingTrieMemoization 45.2%

759 Employee Free Time ArraySortingHeap (Priority Queue) 71.5%

2 Add Two Numbers Linked ListMathRecursion 39.4%

239 Sliding Window Maximum ArrayQueueSliding WindowHeap (Priority 46.5%


Queue)Monotonic Queue

127 Word Ladder Hash TableStringBreadth-First Search 36.3%

301 Remove Invalid Parentheses StringBacktrackingBreadth-First Search 47.0%

502 IPO ArrayGreedySortingHeap (Priority Queue) 44.7%

967 Numbers With Same BacktrackingBreadth-First Search 47.9%


Consecutive Differences

1743 Restore the Array From Adjacent ArrayHash Table 68.5%


Pairs

22 Generate Parentheses StringDynamic ProgrammingBacktracking 71.3%

32 Longest Valid Parentheses StringDynamic ProgrammingStack 32.5%

388 Longest Absolute File Path StringStackDepth-First Search 46.4%

282 Expression Add Operators MathStringBacktracking 39.2%

286 Walls and Gates ArrayBreadth-First SearchMatrix 60.0%

10 Regular Expression Matching StringDynamic ProgrammingRecursion 28.3%

34 Find First and Last Position of ArrayBinary Search 41.3%


Element in Sorted Array

764 Largest Plus Sign ArrayDynamic Programming 48.5%

49 Group Anagrams ArrayHash TableStringSorting 65.4%

1135 Connecting Cities With Union FindGraphHeap (Priority Queue)Minimum Spanning 61.0%
Minimum Cost Tree

218 The Skyline Problem ArrayDivide and ConquerBinary Indexed TreeSegment 39.2%
TreeLine SweepHeap (Priority Queue)Ordered Set

149 Max Points on a Line ArrayHash TableMathGeometry 21.4%

692 Top K Frequent Words Hash TableStringTrieSortingHeap (Priority Queue)Bucket 55.0%


# Title Tags Acceptanc

SortCounting

173 Binary Search Tree Iterator StackTreeDesignBinary Search TreeBinary TreeIterator 68.5%

254 Factor Combinations ArrayBacktracking 48.8%

315 Count of Smaller Numbers After ArrayBinary SearchDivide and ConquerBinary Indexed 42.9%
Self TreeSegment TreeMerge SortOrdered Set

4 Median of Two Sorted Arrays ArrayBinary SearchDivide and Conquer 34.8%

545 Boundary of Binary Tree TreeDepth-First SearchBinary Tree 44.0%

2187 Minimum Time to Complete ArrayBinary Search 31.4%


Trips

336 Palindrome Pairs ArrayHash TableStringTrie 35.2%

312 Burst Balloons ArrayDynamic Programming 56.8%

1579 Remove Max Number of Edges Union FindGraph 52.3%


to Keep Graph Fully Traversable

329 Longest Increasing Path in a ArrayDynamic ProgrammingDepth-First SearchBreadth-First 51.8%


Matrix SearchGraphTopological SortMemoizationMatrix

1052 Grumpy Bookstore Owner ArraySliding Window 56.9%

140 Word Break II Hash TableStringDynamic 43.6%


ProgrammingBacktrackingTrieMemoization

247 Strobogrammatic Number II ArrayStringRecursion 51.3%

934 Shortest Bridge ArrayDepth-First SearchBreadth-First SearchMatrix 53.6%

85 Maximal Rectangle ArrayDynamic ProgrammingStackMatrixMonotonic Stack 43.7%

76 Minimum Window Substring Hash TableStringSliding Window 39.8%

945 Minimum Increment to Make ArrayGreedySortingCounting 49.5%


Array Unique

767 Reorganize String Hash TableStringGreedySortingHeap (Priority 52.6%


Queue)Counting

621 Task Scheduler ArrayHash TableGreedySortingHeap (Priority 55.3%


Queue)Counting

1281 Subtract the Product and Sum of Math 86.6%


# Title Tags Acceptanc

Digits of an Integer

384 Shuffle an Array ArrayMathRandomized 57.5%

992 Subarrays with K Different ArrayHash TableSliding WindowCounting 53.9%


Integers

97 Interleaving String StringDynamic Programming 36.9%

3 Longest Substring Without Hash TableStringSliding Window 33.7%


Repeating Characters

238 Product of Array Except Self ArrayPrefix Sum 64.5%

658 Find K Closest Elements ArrayTwo PointersBinary SearchSortingHeap (Priority 45.0%


Queue)

535 Encode and Decode TinyURL Hash TableStringDesignHash Function 85.7%

959 Regions Cut By Slashes Depth-First SearchBreadth-First SearchUnion FindGraph 69.0%

53 Maximum Subarray ArrayDivide and ConquerDynamic Programming 49.9%

37 Sudoku Solver ArrayBacktrackingMatrix 56.0%

362 Design Hit Counter ArrayHash TableBinary SearchDesignQueue 68.0%

99 Recover Binary Search Tree TreeDepth-First SearchBinary Search TreeBinary Tree 49.8%

31 Next Permutation ArrayTwo Pointers 36.9%

340 Longest Substring with At Most Hash TableStringSliding Window 47.7%


K Distinct Characters

91 Decode Ways StringDynamic Programming 31.1%

722 Remove Comments ArrayString 37.8%

23 Merge k Sorted Lists Linked ListDivide and ConquerHeap (Priority Queue)Merge 48.0%
Sort

909 Snakes and Ladders ArrayBreadth-First SearchMatrix 40.8%

243 Shortest Word Distance ArrayString 64.8%

295 Find Median from Data Stream Two PointersDesignSortingHeap (Priority Queue)Data 50.9%
Stream

128 Longest Consecutive Sequence ArrayHash TableUnion Find 49.0%


# Title Tags Acceptanc

15 3Sum ArrayTwo PointersSorting 31.9%

953 Verifying an Alien Dictionary ArrayHash TableString 52.6%

1044 Longest Duplicate Substring StringBinary SearchSliding WindowRolling HashSuffix 30.8%


ArrayHash Function

230 Kth Smallest Element in a BST TreeDepth-First SearchBinary Search TreeBinary Tree 68.8%

1950 Maximum of Minimum Values ArrayStackMonotonic Stack 49.9%


in All Subarrays

54 Spiral Matrix ArrayMatrixSimulation 43.0%

871 Minimum Number of Refueling ArrayDynamic ProgrammingGreedyHeap (Priority Queue) 39.8%


Stops

394 Decode String StringStackRecursion 57.1%

2009 Minimum Number of Operations ArrayBinary Search 45.7%


to Make Array Continuous

193 Valid Phone Numbers Shell 25.9%

827 Making A Large Island ArrayDepth-First SearchBreadth-First SearchUnion 44.7%


FindMatrix

131 Palindrome Partitioning StringDynamic ProgrammingBacktracking 61.6%

1335 Minimum Difficulty of a Job ArrayDynamic Programming 55.9%


Schedule

121 Best Time to Buy and Sell Stock ArrayDynamic Programming 54.4%

729 My Calendar I Binary SearchDesignSegment TreeOrdered Set 57.1%

39 Combination Sum ArrayBacktracking 67.0%

346 Moving Average from Data ArrayDesignQueueData Stream 76.9%


Stream

418 Sentence Screen Fitting StringDynamic ProgrammingSimulation 35.6%

133 Clone Graph Hash TableDepth-First SearchBreadth-First SearchGraph 49.8%

752 Open the Lock ArrayHash TableStringBreadth-First Search 55.5%

279 Perfect Squares MathDynamic ProgrammingBreadth-First Search 52.2%


# Title Tags Acceptanc

210 Course Schedule II Depth-First SearchBreadth-First SearchGraphTopological 47.5%


Sort

5 Longest Palindromic Substring StringDynamic Programming 32.3%

1531 String Compression II StringDynamic Programming 38.3%

977 Squares of a Sorted Array ArrayTwo PointersSorting 71.8%

1136 Parallel Courses GraphTopological Sort 61.9%

57 Insert Interval Array 37.8%

902 Numbers At Most N Given Digit ArrayMathBinary SearchDynamic Programming 41.3%


Set

51 N-Queens ArrayBacktracking 62.1%

863 All Nodes Distance K in Binary TreeDepth-First SearchBreadth-First SearchBinary Tree 61.9%
Tree

130 Surrounded Regions ArrayDepth-First SearchBreadth-First SearchUnion 35.3%


FindMatrix

1696 Jump Game VI ArrayDynamic ProgrammingQueueSliding WindowHeap 46.3%


(Priority Queue)Monotonic Queue

1286 Iterator for Combination StringBacktrackingDesignIterator 73.5%

161 One Edit Distance Two PointersString 34.1%

1640 Check Array Formation Through ArrayHash Table 56.0%


Concatenation

445 Add Two Numbers II Linked ListMathStack 59.2%

1036 Escape a Large Maze ArrayHash TableDepth-First SearchBreadth-First Search 34.1%

1385 Find the Distance Value Between ArrayTwo PointersBinary SearchSorting 65.3%
Two Arrays

11 Container With Most Water ArrayTwo PointersGreedy 54.1%

347 Top K Frequent Elements ArrayHash TableDivide and ConquerSortingHeap (Priority 64.9%
Queue)Bucket SortCountingQuickselect

208 Implement Trie (Prefix Tree) Hash TableStringDesignTrie 60.1%

518 Coin Change 2 ArrayDynamic Programming 59.3%


# Title Tags Acceptanc

162 Find Peak Element ArrayBinary Search 46.1%

200 Number of Islands ArrayDepth-First SearchBreadth-First SearchUnion 55.7%


FindMatrix

681 Next Closest Time StringEnumeration 46.4%

59 Spiral Matrix II ArrayMatrixSimulation 66.1%

246 Strobogrammatic Number Hash TableTwo PointersString 47.6%

64 Minimum Path Sum ArrayDynamic ProgrammingMatrix 60.3%

694 Number of Distinct Islands Hash TableDepth-First SearchBreadth-First SearchUnion 60.4%


FindHash Function

16 3Sum Closest ArrayTwo PointersSorting 46.4%

378 Kth Smallest Element in a Sorted ArrayBinary SearchSortingHeap (Priority Queue)Matrix 61.4%
Matrix

207 Course Schedule Depth-First SearchBreadth-First SearchGraphTopological 45.2%


Sort

432 All O`one Data Structure Hash TableLinked ListDesignDoubly-Linked List 36.6%

490 The Maze Depth-First SearchBreadth-First SearchGraph 55.2%

21 Merge Two Sorted Lists Linked ListRecursion 61.4%

7 Reverse Integer Math 27.0%

493 Reverse Pairs ArrayBinary SearchDivide and ConquerBinary Indexed 30.7%


TreeSegment TreeMerge SortOrdered Set

13 Roman to Integer Hash TableMathString 58.3%

1293 Shortest Path in a Grid with ArrayBreadth-First SearchMatrix 43.6%


Obstacles Elimination

20 Valid Parentheses StringStack 40.8%

41 First Missing Positive ArrayHash Table 36.4%

179 Largest Number StringGreedySorting 33.6%

6 Zigzag Conversion String 42.6%

14 Longest Common Prefix String 40.4%


# Title Tags Acceptanc

889 Construct Binary Tree from ArrayHash TableDivide and ConquerTreeBinary Tree 70.6%
Preorder and Postorder Traversal

420 Strong Password Checker StringGreedyHeap (Priority Queue) 14.2%

233 Number of Digit One MathDynamic ProgrammingRecursion 34.1%

1242 Web Crawler Multithreaded Depth-First SearchBreadth-First SearchConcurrency 48.9%

1368 Minimum Cost to Make at Least ArrayBreadth-First SearchGraphHeap (Priority 61.2%


One Valid Path in a Grid Queue)MatrixShortest Path

723 Candy Crush ArrayTwo PointersMatrixSimulation 75.8%

211 Design Add and Search Words StringDepth-First SearchDesignTrie 43.7%


Data Structure

417 Pacific Atlantic Water Flow ArrayDepth-First SearchBreadth-First SearchMatrix 51.4%

1498 Number of Subsequences That ArrayTwo PointersBinary SearchSorting 38.6%


Satisfy the Given Sum Condition

1552 Magnetic Force Between Two ArrayBinary SearchSorting 56.5%


Balls

38 Count and Say String 49.5%

78 Subsets ArrayBacktrackingBit Manipulation 73.2%

486 Predict the Winner ArrayMathDynamic ProgrammingRecursionGame Theory 50.7%

981 Time Based Key-Value Store Hash TableStringBinary SearchDesign 52.3%

44 Wildcard Matching StringDynamic ProgrammingGreedyRecursion 26.8%

706 Design HashMap ArrayHash TableLinked ListDesignHash Function 65.2%

134 Gas Station ArrayGreedy 44.8%

1878 Get Biggest Three Rhombus ArrayMathSortingHeap (Priority Queue)MatrixPrefix Sum 46.2%
Sums in a Grid

1838 Frequency of the Most Frequent ArrayBinary SearchGreedySliding WindowSortingPrefix 37.9%


Element Sum

451 Sort Characters By Frequency Hash TableStringSortingHeap (Priority Queue)Bucket 68.3%


SortCounting

290 Word Pattern Hash TableString 40.3%


# Title Tags Acceptanc

460 LFU Cache Hash TableLinked ListDesignDoubly-Linked List 40.1%

122 Best Time to Buy and Sell Stock ArrayDynamic ProgrammingGreedy 62.9%
II

881 Boats to Save People ArrayTwo PointersGreedySorting 52.6%

322 Coin Change ArrayDynamic ProgrammingBreadth-First Search 41.2%

1027 Longest Arithmetic Subsequence ArrayHash TableBinary SearchDynamic Programming 47.5%

886 Possible Bipartition Depth-First SearchBreadth-First SearchUnion FindGraph 48.2%

215 Kth Largest Element in an Array ArrayDivide and ConquerSortingHeap (Priority 65.4%
Queue)Quickselect

317 Shortest Distance from All ArrayBreadth-First SearchMatrix 43.1%


Buildings

46 Permutations ArrayBacktracking 74.1%

424 Longest Repeating Character Hash TableStringSliding Window 51.2%


Replacement

69 Sqrt(x) MathBinary Search 36.9%

101 Symmetric Tree TreeDepth-First SearchBreadth-First SearchBinary Tree 52.5%

1344 Angle Between Hands of a Clock Math 63.4%

542 01 Matrix ArrayDynamic ProgrammingBreadth-First SearchMatrix 44.0%

124 Binary Tree Maximum Path Sum Dynamic ProgrammingTreeDepth-First SearchBinary Tree 38.2%

249 Group Shifted Strings ArrayHash TableString 64.1%

1011 Capacity To Ship Packages ArrayBinary Search 64.2%


Within D Days

1582 Special Positions in a Binary ArrayMatrix 65.2%


Matrix

1814 Count Nice Pairs in an Array ArrayHash TableMathCounting 41.5%

2023 Number of Pairs of Strings With ArrayString 72.8%


Concatenation Equal to Target

546 Remove Boxes ArrayDynamic ProgrammingMemoization 47.4%


# Title Tags Acceptanc

1146 Snapshot Array ArrayHash TableBinary SearchDesign 37.3%

1314 Matrix Block Sum ArrayMatrixPrefix Sum 75.4%

70 Climbing Stairs MathDynamic ProgrammingMemoization 51.6%

438 Find All Anagrams in a String Hash TableStringSliding Window 48.8%

1635 Hopper Company Queries I Database 53.0%

169 Majority Element ArrayHash TableDivide and ConquerSortingCounting 63.6%

283 Move Zeroes ArrayTwo Pointers 61.1%

560 Subarray Sum Equals K ArrayHash TablePrefix Sum 44.2%

277 Find the Celebrity Two PointersGreedyGraphInteractive 46.9%

24 Swap Nodes in Pairs Linked ListRecursion 59.9%

29 Divide Two Integers MathBit Manipulation 17.4%

721 Accounts Merge ArrayStringDepth-First SearchBreadth-First SearchUnion 56.2%


Find

138 Copy List with Random Pointer Hash TableLinked List 49.8%

72 Edit Distance StringDynamic Programming 52.2%

75 Sort Colors ArrayTwo PointersSorting 56.5%

43 Multiply Strings MathStringSimulation 38.5%

28 Implement strStr() Two PointersStringString Matching 37.1%

1352 Product of the Last K Numbers ArrayMathDesignQueueData Stream 49.0%

446 Arithmetic Slices II - ArrayDynamic Programming 39.7%


Subsequence

74 Search a 2D Matrix ArrayBinary SearchMatrix 46.2%

118 Pascal's Triangle ArrayDynamic Programming 68.1%

206 Reverse Linked List Linked ListRecursion 71.8%

330 Patching Array ArrayGreedy 39.8%

135 Candy ArrayGreedy 40.4%


# Title Tags Acceptanc

680 Valid Palindrome II Two PointersStringGreedy 39.4%

973 K Closest Points to Origin ArrayMathDivide and ConquerGeometrySortingHeap 65.9%


(Priority Queue)Quickselect

33 Search in Rotated Sorted Array ArrayBinary Search 38.4%

1626 Best Team With No Conflicts ArrayDynamic ProgrammingSorting 41.0%

186 Reverse Words in a String II Two PointersString 52.0%

355 Design Twitter Hash TableLinked ListDesignHeap (Priority Queue) 36.0%

433 Minimum Genetic Mutation Hash TableStringBreadth-First Search 47.8%

847 Shortest Path Visiting All Nodes Dynamic ProgrammingBit ManipulationBreadth-First 61.3%
SearchGraphBitmask

337 House Robber III Dynamic ProgrammingTreeDepth-First SearchBinary Tree 53.7%

1106 Parsing A Boolean Expression StringStackRecursion 58.4%

1391 Check if There is a Valid Path in ArrayDepth-First SearchBreadth-First SearchUnion 46.9%


a Grid FindMatrix

1856 Maximum Subarray Min-Product ArrayStackMonotonic StackPrefix Sum 37.4%

1235 Maximum Profit in Job ArrayBinary SearchDynamic ProgrammingSorting 51.0%


Scheduling

415 Add Strings MathStringSimulation 52.5%

1062 Longest Repeating Substring StringBinary SearchDynamic ProgrammingRolling 59.1%


HashSuffix ArrayHash Function

105 Construct Binary Tree from ArrayHash TableDivide and ConquerTreeBinary Tree 60.1%
Preorder and Inorder Traversal

912 Sort an Array ArrayDivide and ConquerSortingHeap (Priority 60.9%


Queue)Merge SortBucket SortRadix SortCounting Sort

1423 Maximum Points You Can ArraySliding WindowPrefix Sum 52.3%


Obtain from Cards

581 Shortest Unsorted Continuous ArrayTwo PointersStackGreedySortingMonotonic Stack 36.2%


Subarray

40 Combination Sum II ArrayBacktracking 53.1%


# Title Tags Acceptanc

647 Palindromic Substrings StringDynamic Programming 66.1%

452 Minimum Number of Arrows to ArrayGreedySorting 53.1%


Burst Balloons

168 Excel Sheet Column Title MathString 34.5%

817 Linked List Components Hash TableLinked List 58.1%

532 K-diff Pairs in an Array ArrayHash TableTwo PointersBinary SearchSorting 40.6%

1025 Divisor Game MathDynamic ProgrammingBrainteaserGame Theory 67.0%

199 Binary Tree Right Side View TreeDepth-First SearchBreadth-First SearchBinary Tree 60.9%

88 Merge Sorted Array ArrayTwo PointersSorting 45.4%

155 Min Stack StackDesign 51.3%

611 Valid Triangle Number ArrayTwo PointersBinary SearchGreedySorting 50.1%

888 Fair Candy Swap ArrayHash TableBinary SearchSorting 60.4%

646 Maximum Length of Pair Chain ArrayDynamic ProgrammingGreedySorting 56.2%

84 Largest Rectangle in Histogram ArrayStackMonotonic Stack 41.7%

350 Intersection of Two Arrays II ArrayHash TableTwo PointersBinary SearchSorting 55.4%

1008 Construct Binary Search Tree ArrayStackTreeBinary Search TreeMonotonic StackBinary 80.8%
from Preorder Traversal Tree

698 Partition to K Equal Sum Subsets ArrayDynamic ProgrammingBacktrackingBit 41.6%


ManipulationMemoizationBitmask

67 Add Binary MathStringBit ManipulationSimulation 51.1%

695 Max Area of Island ArrayDepth-First SearchBreadth-First SearchUnion 71.5%


FindMatrix

731 My Calendar II Binary SearchDesignSegment TreeOrdered Set 54.1%

785 Is Graph Bipartite? Depth-First SearchBreadth-First SearchUnion FindGraph 52.4%

25 Reverse Nodes in k-Group Linked ListRecursion 52.8%

114 Flatten Binary Tree to Linked Linked ListStackTreeDepth-First SearchBinary Tree 60.6%
List
# Title Tags Acceptanc

188 Best Time to Buy and Sell Stock ArrayDynamic Programming 35.2%
IV

678 Valid Parenthesis String StringDynamic ProgrammingStackGreedy 33.8%

799 Champagne Tower Dynamic Programming 51.2%

1470 Shuffle the Array Array 88.5%

674 Longest Continuous Increasing Array 48.9%


Subsequence

154 Find Minimum in Rotated Sorted ArrayBinary Search 43.3%


Array II

739 Daily Temperatures ArrayStackMonotonic Stack 67.7%

733 Flood Fill ArrayDepth-First SearchBreadth-First SearchMatrix 59.8%

47 Permutations II ArrayBacktracking 56.3%

287 Find the Duplicate Number ArrayTwo PointersBinary SearchBit Manipulation 59.1%

50 Pow(x, n) MathRecursion 32.7%

1091 Shortest Path in Binary Matrix ArrayBreadth-First SearchMatrix 44.5%

123 Best Time to Buy and Sell Stock ArrayDynamic Programming 44.3%
III

588 Design In-Memory File System Hash TableStringDesignTrie 48.6%

987 Vertical Order Traversal of a Hash TableTreeDepth-First SearchBreadth-First 42.2%


Binary Tree SearchBinary Tree

994 Rotting Oranges ArrayBreadth-First SearchMatrix 52.2%

236 Lowest Common Ancestor of a TreeDepth-First SearchBinary Tree 57.5%


Binary Tree

628 Maximum Product of Three ArrayMathSorting 46.6%


Numbers

102 Binary Tree Level Order TreeBreadth-First SearchBinary Tree 62.8%


Traversal

1182 Shortest Distance to Target Color ArrayBinary SearchDynamic Programming 55.5%

1865 Finding Pairs With a Certain ArrayHash TableDesign 50.1%


# Title Tags Acceptanc

Sum

608 Tree Node Database 75.0%

148 Sort List Linked ListTwo PointersDivide and ConquerSortingMerge 53.5%


Sort

26 Remove Duplicates from Sorted ArrayTwo Pointers 49.9%


Array

12 Integer to Roman Hash TableMathString 60.2%

682 Baseball Game ArrayStackSimulation 73.5%

547 Number of Provinces Depth-First SearchBreadth-First SearchUnion FindGraph 63.0%

494 Target Sum ArrayDynamic ProgrammingBacktracking 45.4%

136 Single Number ArrayBit Manipulation 69.9%

48 Rotate Image ArrayMathMatrix 69.1%

153 Find Minimum in Rotated Sorted ArrayBinary Search 48.3%


Array

671 Second Minimum Node In a TreeDepth-First SearchBinary Tree 43.9%


Binary Tree

1039 Minimum Score Triangulation of ArrayDynamic Programming 54.2%


Polygon

699 Falling Squares ArraySegment TreeOrdered Set 44.3%

1475 Final Prices With a Special ArrayStackMonotonic Stack 75.3%


Discount in a Shop

152 Maximum Product Subarray ArrayDynamic Programming 34.8%

304 Range Sum Query 2D - ArrayDesignMatrixPrefix Sum 51.7%


Immutable

300 Longest Increasing Subsequence ArrayBinary SearchDynamic Programming 51.3%

1252 Cells with Odd Values in a ArrayMathSimulation 78.5%


Matrix

659 Split Array into Consecutive ArrayHash TableGreedyHeap (Priority Queue) 50.5%
Subsequences
# Title Tags Acceptanc

1740 Find Distance in a Binary Tree Hash TableTreeDepth-First SearchBreadth-First 68.7%


SearchBinary Tree

205 Isomorphic Strings Hash TableString 42.4%

266 Palindrome Permutation Hash TableStringBit Manipulation 65.7%

90 Subsets II ArrayBacktrackingBit Manipulation 54.8%

160 Intersection of Two Linked Lists Hash TableLinked ListTwo Pointers 52.6%

450 Delete Node in a BST TreeBinary Search TreeBinary Tree 49.7%

240 Search a 2D Matrix II ArrayBinary SearchDivide and ConquerMatrix 50.3%

416 Partition Equal Subset Sum ArrayDynamic Programming 46.7%

1002 Find Common Characters ArrayHash TableString 68.4%

1556 Thousand Separator String 55.3%

209 Minimum Size Subarray Sum ArrayBinary SearchSliding WindowPrefix Sum 44.2%

387 First Unique Character in a Hash TableStringQueueCounting 58.6%


String

143 Reorder List Linked ListTwo PointersStackRecursion 50.1%

470 Implement Rand10() Using MathRejection SamplingRandomizedProbability and 46.7%


Rand7() Statistics

9 Palindrome Number Math 52.7%

167 Two Sum II - Input Array Is ArrayTwo PointersBinary Search 59.9%


Sorted

234 Palindrome Linked List Linked ListTwo PointersStackRecursion 49.0%

235 Lowest Common Ancestor of a TreeDepth-First SearchBinary Search TreeBinary Tree 59.6%
Binary Search Tree

609 Find Duplicate File in System ArrayHash TableString 64.0%

690 Employee Importance Hash TableDepth-First SearchBreadth-First Search 64.9%

242 Valid Anagram Hash TableStringSorting 62.5%

864 Shortest Path to Get All Keys Bit ManipulationBreadth-First Search 45.3%
# Title Tags Acceptanc

1818 Minimum Absolute Sum ArrayBinary SearchSortingOrdered Set 30.1%


Difference

18 4Sum ArrayTwo PointersSorting 36.8%

271 Encode and Decode Strings ArrayStringDesign 40.4%

8 String to Integer (atoi) String 16.6%

55 Jump Game ArrayDynamic ProgrammingGreedy 38.3%

2333 Minimum Sum of Squared ArrayMathSortingHeap (Priority Queue) 24.6%


Difference

98 Validate Binary Search Tree TreeDepth-First SearchBinary Search TreeBinary Tree 31.5%

178 Rank Scores Database 59.1%

740 Delete and Earn ArrayHash TableDynamic Programming 57.4%

71 Simplify Path StringStack 39.1%

1307 Verbal Arithmetic Puzzle ArrayMathStringBacktracking 34.2%

1793 Maximum Score of a Good ArrayTwo PointersBinary SearchStackMonotonic Stack 52.7%


Subarray

930 Binary Subarrays With Sum ArrayHash TableSliding WindowPrefix Sum 50.3%

1239 Maximum Length of a ArrayStringBacktrackingBit Manipulation 50.6%


Concatenated String with Unique
Characters

617 Merge Two Binary Trees TreeDepth-First SearchBreadth-First SearchBinary Tree 78.4%

226 Invert Binary Tree TreeDepth-First SearchBreadth-First SearchBinary Tree 72.8%

1171 Remove Zero Sum Consecutive Hash TableLinked List 42.8%


Nodes from Linked List

907 Sum of Subarray Minimums ArrayDynamic ProgrammingStackMonotonic Stack 34.2%

35 Search Insert Position ArrayBinary Search 42.1%

45 Jump Game II ArrayDynamic ProgrammingGreedy 38.2%

177 Nth Highest Salary Database 37.0%

852 Peak Index in a Mountain Array ArrayBinary Search 69.6%


# Title Tags Acceptanc

151 Reverse Words in a String Two PointersString 29.7%

219 Contains Duplicate II ArrayHash TableSliding Window 40.9%

180 Consecutive Numbers Database 46.4%

373 Find K Pairs with Smallest Sums ArrayHeap (Priority Queue) 38.4%

716 Max Stack Linked ListStackDesignDoubly-Linked ListOrdered Set 45.3%

921 Minimum Add to Make StringStackGreedy 76.6%


Parentheses Valid

310 Minimum Height Trees Depth-First SearchBreadth-First SearchGraphTopological 38.4%


Sort

787 Cheapest Flights Within K Stops Dynamic ProgrammingDepth-First SearchBreadth-First 35.9%


SearchGraphHeap (Priority Queue)Shortest Path

836 Rectangle Overlap MathGeometry 43.3%

901 Online Stock Span StackDesignMonotonic StackData Stream 63.7%

1891 Cutting Ribbons ArrayBinary Search 48.1%

414 Third Maximum Number ArraySorting 32.3%

735 Asteroid Collision ArrayStack 44.4%

196 Delete Duplicate Emails Database 56.9%

923 3Sum With Multiplicity ArrayHash TableTwo PointersSortingCounting 45.5%

1095 Find in Mountain Array ArrayBinary SearchInteractive 35.8%

185 Department Top Three Salaries Database 49.2%

181 Employees Earning More Than Database 67.8%


Their Managers

849 Maximize Distance to Closest Array 47.5%


Person

763 Partition Labels Hash TableTwo PointersStringGreedy 79.8%

1668 Maximum Repeating Substring StringString Matching 39.6%

1290 Convert Binary Number in a Linked ListMath 82.6%


Linked List to Integer
# Title Tags Acceptanc

217 Contains Duplicate ArrayHash TableSorting 61.1%

392 Is Subsequence Two PointersStringDynamic Programming 49.9%

662 Maximum Width of Binary Tree TreeDepth-First SearchBreadth-First SearchBinary Tree 40.4%

1768 Merge Strings Alternately Two PointersString 75.9%

202 Happy Number Hash TableMathTwo Pointers 54.1%

1200 Minimum Absolute Difference ArraySorting 69.8%

1218 Longest Arithmetic Subsequence ArrayHash TableDynamic Programming 51.8%


of Given Difference

1497 Check If Array Pairs Are ArrayHash TableCounting 39.9%


Divisible by k

743 Network Delay Time Depth-First SearchBreadth-First SearchGraphHeap (Priority 51.1%


Queue)Shortest Path

1920 Build Array from Permutation ArraySimulation 91.5%

103 Binary Tree Zigzag Level Order TreeBreadth-First SearchBinary Tree 54.7%
Traversal

704 Binary Search ArrayBinary Search 55.2%

1480 Running Sum of 1d Array ArrayPrefix Sum 90.2%

496 Next Greater Element I ArrayHash TableStackMonotonic Stack 71.1%

509 Fibonacci Number MathDynamic ProgrammingRecursionMemoization 69.1%

875 Koko Eating Bananas ArrayBinary Search 53.0%

1152 Analyze User Website Visit ArrayHash TableSorting 43.5%


Pattern

648 Replace Words ArrayHash TableStringTrie 62.5%

104 Maximum Depth of Binary Tree TreeDepth-First SearchBreadth-First SearchBinary Tree 72.8%

942 DI String Match ArrayTwo PointersStringGreedy 76.4%

1283 Find the Smallest Divisor Given ArrayBinary Search 54.9%


a Threshold

19 Remove Nth Node From End of Linked ListTwo Pointers 39.1%


# Title Tags Acceptanc

List

171 Excel Sheet Column Number MathString 61.1%

1143 Longest Common Subsequence StringDynamic Programming 58.9%

1249 Minimum Remove to Make StringStack 65.6%


Valid Parentheses

653 Two Sum IV - Input is a BST Hash TableTwo PointersTreeDepth-First SearchBreadth-First 59.3%
SearchBinary Search TreeBinary Tree

746 Min Cost Climbing Stairs ArrayDynamic Programming 61.9%

1334 Find the City With the Smallest Dynamic ProgrammingGraphShortest Path 52.5%
Number of Neighbors at a
Threshold Distance

2176 Count Equal and Divisible Pairs Array 80.3%


in an Array

1244 Design A Leaderboard Hash TableDesignSorting 68.5%

1603 Design Parking System DesignSimulationCounting 87.9%

125 Valid Palindrome Two PointersString 43.0%

61 Rotate List Linked ListTwo Pointers 35.5%

1162 As Far from Land as Possible ArrayDynamic ProgrammingBreadth-First SearchMatrix 48.4%

27 Remove Element ArrayTwo Pointers 51.8%

1672 Richest Customer Wealth ArrayMatrix 88.6%

696 Count Binary Substrings Two PointersString 65.3%

1762 Buildings With an Ocean View ArrayStackMonotonic Stack 79.3%

412 Fizz Buzz MathStringSimulation 68.1%

363 Max Sum of Rectangle No ArrayBinary SearchMatrixPrefix SumOrdered Set 44.2%


Larger Than K

182 Duplicate Emails Database 70.1%

724 Find Pivot Index ArrayPrefix Sum 53.0%

1752 Check if Array Is Sorted and Array 49.1%


# Title Tags Acceptanc

Rotated

947 Most Stones Removed with Depth-First SearchUnion FindGraph 56.7%


Same Row or Column

1587 Bank Account Summary II Database 90.5%

1254 Number of Closed Islands ArrayDepth-First SearchBreadth-First SearchUnion 64.1%


FindMatrix

1268 Search Suggestions System ArrayStringTrie 66.8%

516 Longest Palindromic StringDynamic Programming 60.4%


Subsequence

100 Same Tree TreeDepth-First SearchBreadth-First SearchBinary Tree 56.1%

1047 Remove All Adjacent Duplicates StringStack 70.6%


In String

1929 Concatenation of Array Array 91.5%

710 Random Pick with Blacklist Hash TableMathBinary SearchSortingRandomized 33.5%

1064 Fixed Point ArrayBinary Search 63.6%

1462 Course Schedule IV Depth-First SearchBreadth-First SearchGraphTopological 48.5%


Sort

1519 Number of Nodes in the Sub- Hash TableTreeDepth-First SearchBreadth-First 40.6%


Tree With the Same Label SearchCounting

1645 Hopper Company Queries II Database 38.7%

1651 Hopper Company Queries III Database 67.9%

1719 Number Of Ways To TreeGraphTopological Sort 42.6%


Reconstruct A Tree

1705 Maximum Number of Eaten ArrayGreedyHeap (Priority Queue) 37.3%


Apples

1829 Maximum XOR for Each Query ArrayBit ManipulationPrefix Sum 76.6%

1926 Nearest Exit from Entrance in ArrayBreadth-First SearchMatrix 42.7%


Maze

2307 Check for Contradictions in ArrayDepth-First SearchUnion FindGraph 39.2%


Equations
# Title Tags Acceptanc

1968 Array With Elements Not Equal ArrayGreedySorting 49.2%


to Average of Neighbors

1961 Check If String Is a Prefix of ArrayString 54.3%


Array

1967 Number of Strings That Appear String 80.0%


as Substrings in Word

2196 Create Binary Tree From ArrayHash TableTreeDepth-First SearchBreadth-First 71.7%


Descriptions SearchBinary Tree

2248 Intersection of Multiple Arrays ArrayHash TableCounting 69.8%

2261 K Divisible Elements Subarrays ArrayHash TableTrieRolling HashHash 46.6%


FunctionEnumeration

2258 Escape the Spreading Fire ArrayBinary SearchBreadth-First SearchMatrix 34.7%

2243 Calculate Digit Sum of a String StringSimulation 66.8%

2282 Number of People That Can Be ArrayStackMatrixMonotonic Stack 50.0%


Seen in a Grid
Copyright © 2022 LeetCode
 Help Center
 Jobs
 Bug Bounty
 Online Interview
 Students
 Terms
 Privacy Policy

United States

You might also like