Skip to main content
DifficultyTopic349 of 349
No.ProblemDifficultyFrequency
146LRU CacheMedium
100.0%
200Number of Islands
GraphMath
Medium
100.0%
3Longest Substring Without Repeating Characters
StringTree
Medium
87.5%
42Trapping Rain WaterHard
87.5%
56Merge IntervalsMedium
87.5%
207Course ScheduleMedium
87.5%
210Course Schedule IIMedium
87.5%
253Meeting Rooms IIMedium
87.5%
300Longest Increasing Subsequence
String
Medium
87.5%
694Number of Distinct Islands
GraphMath
Medium
87.5%
2334Subarray With Elements Greater Than Varying Threshold
Array
Hard
87.5%
5Longest Palindromic Substring
StringTree
Medium
75.0%
153SumMedium
75.0%
33Search in Rotated Sorted Array
ArrayBinary Search
Medium
75.0%
51N-QueensHard
75.0%
54Spiral Matrix
Array
Medium
75.0%
68Text JustificationHard
75.0%
69Sqrt(x)
Math
Easy
75.0%
76Minimum Window Substring
StringTreeSliding Window
Hard
75.0%
79Word SearchMedium
75.0%
322Coin Change
DP
Medium
75.0%
347Top K Frequent Elements
Heap
Medium
75.0%
394Decode String
String
Medium
75.0%
560Subarray Sum Equals K
Array
Medium
75.0%
1151Minimum Swaps to Group All 1's TogetherMedium
75.0%
1Two Sum
Sliding Window
Easy
62.5%
20Valid Parentheses
Stack/Queue
Easy
62.5%
22Generate ParenthesesMedium
62.5%
23Merge k Sorted ListsHard
62.5%
70Climbing StairsEasy
62.5%
71Simplify PathMedium
62.5%
72Edit Distance
DP
Medium
62.5%
75Sort ColorsMedium
62.5%
105Construct Binary Tree from Preorder and Inorder Traversal
Tree
Medium
62.5%
121Best Time to Buy and Sell StockEasy
62.5%
124Binary Tree Maximum Path Sum
Tree
Hard
62.5%
127Word LadderHard
62.5%
128Longest Consecutive SequenceMedium
62.5%
140Word Break IIHard
62.5%
143Reorder ListMedium
62.5%
198House RobberMedium
62.5%
199Binary Tree Right Side View
Tree
Medium
62.5%
2145Count the Hidden SequencesMedium
62.5%
206Reverse Linked List
Linked List
Easy
62.5%
215Kth Largest Element in an Array
ArrayHeap
Medium
62.5%
224Basic CalculatorHard
62.5%
227Basic Calculator IIMedium
62.5%
295Find Median from Data Stream
Heap
Hard
62.5%
297Serialize and Deserialize Binary Tree
Tree
Hard
62.5%
329Longest Increasing Path in a Matrix
Array
Hard
62.5%
380Insert Delete GetRandom O(1)Medium
62.5%
415Add Strings
String
Easy
62.5%
2402Meeting Rooms IIIHard
62.5%
2414Length of the Longest Alphabetical Continuous Substring
StringTree
Medium
62.5%
2456Most Popular Video CreatorMedium
62.5%
2523Closest Prime Numbers in Range
Math
Medium
62.5%
2640Find the Score of All Prefixes of an Array
Array
Medium
62.5%
670Maximum SwapMedium
62.5%
678Valid Parenthesis String
String
Medium
62.5%
695Max Area of Island
Graph
Medium
62.5%
739Daily TemperaturesMedium
62.5%
772Basic Calculator IIIHard
62.5%
2799Count Complete Subarrays in an Array
Array
Medium
62.5%
706Design HashMapEasy
62.5%
815Bus RoutesHard
62.5%
827Making A Large Island
Graph
Hard
62.5%
3086Minimum Moves to Pick K OnesHard
62.5%
1405Longest Happy String
String
Medium
62.5%
1293Shortest Path in a Grid with Obstacles Elimination
Tree
Hard
62.5%
1802Maximum Value at a Given Index in a Bounded Array
Array
Medium
62.5%
1860Incremental Memory LeakMedium
62.5%
212Word Search IIHard
62.5%
3389Minimum Operations to Make Character Frequencies EqualHard
62.5%
3441Minimum Cost Good CaptionHard
62.5%
3474Lexicographically Smallest Generated String
StringGraph
Hard
62.5%
1146Snapshot Array
Array
Medium
62.5%
10Regular Expression MatchingHard
50.0%
11Container With Most WaterMedium
50.0%
14Longest Common Prefix
DP
Easy
50.0%
25Reverse Nodes in k-Group
Linked List
Hard
50.0%
31Next PermutationMedium
50.0%
32Longest Valid Parentheses
Stack/Queue
Hard
50.0%
34Find First and Last Position of Element in Sorted Array
Array
Medium
50.0%
39Combination SumMedium
50.0%
43Multiply Strings
String
Medium
50.0%
45Jump Game IIMedium
50.0%
46PermutationsMedium
50.0%
47Permutations IIMedium
50.0%
49Group Anagrams
String
Medium
50.0%
53Maximum Subarray
Array
Medium
50.0%
55Jump GameMedium
50.0%
64Minimum Path SumMedium
50.0%
78SubsetsMedium
50.0%
93Restore IP AddressesMedium
50.0%
103Binary Tree Zigzag Level Order Traversal
Tree
Medium
50.0%
122Best Time to Buy and Sell Stock IIMedium
50.0%
139Word BreakMedium
50.0%
153Find Minimum in Rotated Sorted Array
ArrayBinary Search
Medium
50.0%
160Intersection of Two Linked Lists
Linked List
Easy
50.0%
162Find Peak Element
Binary Search
Medium
50.0%
165Compare Version Numbers
Math
Medium
50.0%
189Rotate Array
Array
Medium
50.0%
209Minimum Size Subarray Sum
Array
Medium
50.0%
236Lowest Common Ancestor of a Binary Tree
Tree
Medium
50.0%
239Sliding Window Maximum
Sliding Window
Hard
50.0%
252Meeting RoomsEasy
50.0%
269Alien DictionaryHard
50.0%
283Move ZeroesEasy
50.0%
286Walls and GatesMedium
50.0%
301Remove Invalid Parentheses
Stack/Queue
Hard
50.0%
316Remove Duplicate LettersMedium
50.0%
378Kth Smallest Element in a Sorted Matrix
Array
Medium
50.0%
395Longest Substring with At Least K Repeating Characters
StringTree
Medium
50.0%
399Evaluate DivisionMedium
50.0%
403Frog JumpHard
50.0%
416Partition Equal Subset Sum
DP
Medium
50.0%
417Pacific Atlantic Water FlowMedium
50.0%
2468Split Message Based on LimitHard
50.0%
588Design In-Memory File SystemHard
50.0%
735Asteroid CollisionMedium
50.0%
426Convert Binary Search Tree to Sorted Doubly Linked List
TreeLinked ListBinary Search
Medium
50.0%
767Reorganize String
String
Medium
50.0%
856Score of ParenthesesMedium
50.0%
875Koko Eating BananasMedium
50.0%
528Random Pick with WeightMedium
50.0%
886Possible Bipartition
DP
Medium
50.0%
924Minimize Malware SpreadHard
50.0%
974Subarray Sums Divisible by K
Array
Medium
50.0%
994Rotting OrangesMedium
50.0%
1011Capacity To Ship Packages Within D DaysMedium
50.0%
1209Remove All Adjacent Duplicates in String II
String
Medium
50.0%
1249Minimum Remove to Make Valid Parentheses
Stack/Queue
Medium
50.0%
1539Kth Missing Positive Number
Math
Easy
50.0%
1530Number of Good Leaf Nodes Pairs
Linked ListMath
Medium
50.0%
3043Find the Length of the Longest Common Prefix
DP
Medium
50.0%
2850Minimum Moves to Spread Stones Over GridMedium
50.0%
77CombinationsMedium
50.0%
473Matchsticks to SquareMedium
50.0%
134Gas StationMedium
50.0%
442Find All Duplicates in an Array
Array
Medium
50.0%
1071Greatest Common Divisor of Strings
String
Easy
50.0%
365Water and Jug ProblemMedium
50.0%
1584Min Cost to Connect All PointsMedium
50.0%
934Shortest BridgeMedium
50.0%
1466Reorder Routes to Make All Paths Lead to the City ZeroMedium
50.0%
902Numbers At Most N Given Digit Set
Math
Hard
50.0%
211Design Add and Search Words Data StructureMedium
50.0%
298Binary Tree Longest Consecutive Sequence
Tree
Medium
50.0%
1248Count Number of Nice Subarrays
ArrayMath
Medium
50.0%
84Largest Rectangle in HistogramHard
50.0%
2021Brightest Position on Street
Tree
Medium
50.0%
581Shortest Unsorted Continuous Subarray
Array
Medium
50.0%
3071Minimum Operations to Write the Letter Y on a GridMedium
50.0%
887Super Egg DropHard
50.0%
1462Course Schedule IVMedium
50.0%
845Longest Mountain in Array
Array
Medium
50.0%
787Cheapest Flights Within K Stops
Heap
Medium
50.0%
12Integer to Roman
Math
Medium
37.5%
21Merge Two Sorted ListsEasy
37.5%
24Swap Nodes in Pairs
Linked List
Medium
37.5%
40Combination Sum IIMedium
37.5%
80Remove Duplicates from Sorted Array II
Array
Medium
37.5%
92Reverse Linked List II
Linked List
Medium
37.5%
113Path Sum IIMedium
37.5%
123Best Time to Buy and Sell Stock IIIHard
37.5%
125Valid Palindrome
String
Easy
37.5%
148Sort ListMedium
37.5%
151Reverse Words in a String
String
Medium
37.5%
152Maximum Product Subarray
Array
Medium
37.5%
159Longest Substring with At Most Two Distinct Characters
StringTree
Medium
37.5%
2096Step-By-Step Directions From a Binary Tree Node to Another
TreeLinked List
Medium
37.5%
2115Find All Possible Recipes from Given SuppliesMedium
37.5%
179Largest Number
Math
Medium
37.5%
188Best Time to Buy and Sell Stock IVHard
37.5%
213House Robber IIMedium
37.5%
221Maximal SquareMedium
37.5%
305Number of Islands II
GraphMath
Hard
37.5%
317Shortest Distance from All BuildingsHard
37.5%
340Longest Substring with At Most K Distinct Characters
StringTree
Medium
37.5%
348Design Tic-Tac-ToeMedium
37.5%
74Search a 2D Matrix
Array
Medium
37.5%
381Insert Delete GetRandom O(1) - Duplicates allowedHard
37.5%
402Remove K Digits
Math
Medium
37.5%
435Non-overlapping IntervalsMedium
37.5%
443String Compression
String
Medium
37.5%
460LFU CacheHard
37.5%
475HeatersMedium
37.5%
2422Merge Operations to Turn Array Into a Palindrome
ArrayString
Medium
37.5%
518Coin Change II
DP
Medium
37.5%
525Contiguous Array
Array
Medium
37.5%
621Task SchedulerMedium
37.5%
642Design Search Autocomplete SystemHard
37.5%
658Find K Closest ElementsMedium
37.5%
662Maximum Width of Binary Tree
Tree
Medium
37.5%
680Valid Palindrome II
String
Easy
37.5%
691Stickers to Spell WordHard
37.5%
714Best Time to Buy and Sell Stock with Transaction FeeMedium
37.5%
726Number of Atoms
Math
Hard
37.5%
752Open the LockMedium
37.5%
785Is Graph Bipartite?
Graph
Medium
37.5%
799Champagne TowerMedium
37.5%
907Sum of Subarray Minimums
Array
Medium
37.5%
945Minimum Increment to Make Array Unique
Array
Medium
37.5%
1004Max Consecutive Ones IIIMedium
37.5%
1010Pairs of Songs With Total Durations Divisible by 60Medium
37.5%
1091Shortest Path in Binary Matrix
Array
Medium
37.5%
1143Longest Common Subsequence
StringDP
Medium
37.5%
1944Number of Visible People in a Queue
Stack/QueueMath
Hard
37.5%
1268Search Suggestions SystemMedium
37.5%
1335Minimum Difficulty of a Job ScheduleHard
37.5%
1423Maximum Points You Can Obtain from CardsMedium
37.5%
1642Furthest Building You Can ReachMedium
37.5%
19Remove Nth Node From End of List
Linked List
Medium
37.5%
1245Tree Diameter
Tree
Medium
37.5%
729My Calendar IMedium
37.5%
628Maximum Product of Three Numbers
Math
Easy
37.5%
909Snakes and LaddersMedium
37.5%
323Number of Connected Components in an Undirected Graph
GraphMath
Medium
37.5%
567Permutation in String
String
Medium
37.5%
6502 Keys KeyboardMedium
37.5%
648Replace WordsMedium
37.5%
135CandyHard
37.5%
1813Sentence Similarity IIIMedium
37.5%
740Delete and EarnMedium
37.5%
716Max Stack
Stack/Queue
Hard
37.5%
337House Robber IIIMedium
37.5%
981Time Based Key-Value StoreMedium
37.5%
543Diameter of Binary Tree
Tree
Easy
37.5%
962Maximum Width RampMedium
37.5%
287Find the Duplicate Number
Math
Medium
37.5%
63Unique Paths IIMedium
37.5%
863All Nodes Distance K in Binary Tree
TreeLinked List
Medium
37.5%
309Best Time to Buy and Sell Stock with CooldownMedium
37.5%
2673Make Costs of Paths Equal in a Binary Tree
Tree
Medium
37.5%
983Minimum Cost For TicketsMedium
37.5%
784Letter Case PermutationMedium
37.5%
452Minimum Number of Arrows to Burst Balloons
Math
Medium
37.5%
616Add Bold Tag in String
String
Medium
37.5%
1044Longest Duplicate Substring
StringTree
Hard
37.5%
13Roman to Integer
Math
Easy
37.5%
1302Deepest Leaves SumMedium
37.5%
959Regions Cut By SlashesMedium
37.5%
2502Design Memory AllocatorMedium
37.5%
489Robot Room CleanerHard
37.5%
2625Flatten Deeply Nested Array
Array
Medium
37.5%
1669Merge In Between Linked Lists
Linked List
Medium
37.5%
721Accounts MergeMedium
37.5%
438Find All Anagrams in a String
String
Medium
37.5%
1352Product of the Last K Numbers
Math
Medium
37.5%
904Fruit Into BasketsMedium
37.5%
48Rotate ImageMedium
37.5%
437Path Sum IIIMedium
37.5%
428Serialize and Deserialize N-ary Tree
Tree
Hard
37.5%
432All O`one Data StructureHard
37.5%
1043Partition Array for Maximum Sum
ArrayDP
Medium
37.5%
2Add Two Numbers
Math
Medium
25.0%
4Median of Two Sorted Arrays
ArrayHeap
Hard
25.0%
36Valid SudokuMedium
25.0%
50Pow(x, n)
Math
Medium
25.0%
59Spiral Matrix II
Array
Medium
25.0%
57Insert IntervalMedium
25.0%
62Unique PathsMedium
25.0%
66Plus OneEasy
25.0%
91Decode WaysMedium
25.0%
96Unique Binary Search Trees
TreeBinary Search
Medium
25.0%
112Path SumEasy
25.0%
2050Parallel Courses IIIHard
25.0%
202Happy Number
Math
Easy
25.0%
208Implement Trie (Prefix Tree)
Tree
Medium
25.0%
240Search a 2D Matrix II
Array
Medium
25.0%
2593Sum SmallerMedium
25.0%
261Graph Valid Tree
TreeGraph
Medium
25.0%
282Expression Add OperatorsHard
25.0%
358Rearrange String k Distance Apart
String
Hard
25.0%
445Add Two Numbers II
Math
Medium
25.0%
468Validate IP AddressMedium
25.0%
498Diagonal TraverseMedium
25.0%
2506Count Pairs Of Similar Strings
String
Easy
25.0%
673Number of Longest Increasing Subsequence
StringMath
Medium
25.0%
992Subarrays with K Different Integers
ArrayMath
Hard
25.0%
1570Dot Product of Two Sparse VectorsMedium
25.0%
472Concatenated WordsHard
25.0%
2134Minimum Swaps to Group All 1's Together IIMedium
25.0%
408Valid Word AbbreviationEasy
25.0%
377Combination Sum IVMedium
25.0%
2530Maximal Score After Applying K OperationsMedium
25.0%
277Find the CelebrityMedium
25.0%
708Insert into a Sorted Circular Linked List
Linked List
Medium
25.0%
1769Minimum Number of Operations to Move All Balls to Each Box
Math
Medium
25.0%
138Copy List with Random PointerMedium
25.0%
505The Maze IIMedium
25.0%
692Top K Frequent Words
Heap
Medium
25.0%
1216Valid Palindrome III
String
Hard
25.0%
413Arithmetic SlicesMedium
25.0%
1237Find Positive Integer Solution for a Given Equation
Math
Medium
25.0%
2931Maximum Spending After Buying ItemsHard
25.0%
440K-th Smallest in Lexicographical Order
Graph
Hard
25.0%
2561Rearranging FruitsHard
25.0%
1136Parallel CoursesMedium
25.0%
108Convert Sorted Array to Binary Search Tree
ArrayTreeBinary Search
Easy
25.0%
1383Maximum Performance of a TeamHard
25.0%
167Two Sum II - Input Array Is Sorted
ArraySliding Window
Medium
25.0%
1235Maximum Profit in Job SchedulingHard
25.0%
230Kth Smallest Element in a BST
Tree
Medium
25.0%
606Construct String from Binary Tree
StringTree
Medium
25.0%
2235Add Two Integers
Math
Easy
25.0%
2551Put Marbles in BagsHard
25.0%
82Remove Duplicates from Sorted List IIMedium
25.0%
941Valid Mountain Array
Array
Easy
25.0%
601Human Traffic of StadiumHard
25.0%
311Sparse Matrix Multiplication
Array
Medium
25.0%
2694Event EmitterMedium
25.0%
529MinesweeperMedium
25.0%
593Valid SquareMedium
25.0%
101Symmetric Tree
Tree
Easy
25.0%
2945Find Maximum Non-decreasing Array Length
Array
Hard
25.0%
723Candy CrushMedium
25.0%
1574Shortest Subarray to be Removed to Make Array Sorted
Array
Medium
25.0%
2537Count the Number of Good Subarrays
ArrayMath
Medium
25.0%
829Consecutive Numbers Sum
Math
Hard
25.0%
99Recover Binary Search Tree
TreeBinary Search
Medium
25.0%
280Wiggle SortMedium
25.0%
232Implement Queue using Stacks
Stack/Queue
Easy
25.0%
496Next Greater Element IEasy
25.0%
271Encode and Decode Strings
String
Medium
25.0%
255Verify Preorder Sequence in Binary Search Tree
TreeBinary Search
Medium
25.0%
2672Number of Adjacent Elements With the Same Color
Math
Medium
25.0%
67924 GameHard
25.0%
696Count Binary Substrings
StringTree
Easy
25.0%
325Maximum Size Subarray Sum Equals k
Array
Medium
25.0%
759Employee Free TimeHard
25.0%
1827Minimum Operations to Make the Array Increasing
Array
Easy
25.0%
400Nth Digit
Math
Medium
25.0%
794Valid Tic-Tac-Toe StateMedium
25.0%
1041Robot Bounded In CircleMedium
25.0%
291Word Pattern IIMedium
25.0%
698Partition to K Equal Sum Subsets
DP
Medium
25.0%
2817Minimum Absolute Difference Between Elements With ConstraintMedium
25.0%
185Department Top Three SalariesHard
25.0%
106Construct Binary Tree from Inorder and Postorder Traversal
Tree
Medium
25.0%
470Implement Rand10() Using Rand7()Medium
25.0%
294Flip Game IIMedium
25.0%
1676Lowest Common Ancestor of a Binary Tree IV
Tree
Medium
25.0%
130Surrounded RegionsMedium
25.0%
503Next Greater Element IIMedium
25.0%
3535Unit Conversion IIMedium
25.0%
1353Maximum Number of Events That Can Be Attended
Math
Medium
25.0%
918Maximum Sum Circular Subarray
Array
Medium
25.0%
1162As Far from Land as PossibleMedium
25.0%