LeetCode Problems
2,913 practice problems · Browse by topic and difficulty
Learn the coding interview patterns behind these problems, or see PhantomCodeAI vs LeetCode Premium.
Browse by topic
Array1674String699Hash Table611Dynamic Programming530Math528Sorting400Greedy377Binary Search265Depth-First Search253Matrix221Bit Manipulation220Breadth-First Search197Tree191Prefix Sum186Two Pointers182Simulation171Heap (Priority Queue)169Counting149Graph141Stack140Sliding Window133Binary Tree130Enumeration118Database96Design94Backtracking88Union Find74Number Theory73Linked List66Ordered Set59Segment Tree57Monotonic Stack54Combinatorics49Bitmask47Trie45Divide and Conquer42Memoization41Queue40Recursion40Geometry38Binary Indexed Tree33String Matching33Hash Function31Binary Search Tree29Shortest Path29Topological Sort28Rolling Hash25Game Theory24Monotonic Queue18Brainteaser16Data Stream13Randomized12Counting Sort9Doubly-Linked List9Merge Sort9Quickselect7Bucket Sort6Concurrency6Line Sweep6Probability and Statistics6Interactive5Iterator5Suffix Array5Reservoir Sampling4Shell4Eulerian Circuit3Minimum Spanning Tree3Radix Sort3Strongly Connected Component3Rejection Sampling2Sort2Biconnected Component1
More practice problems
Browse 62 additional practice problems
Add Two PromisesAllow One Function CallApply Transform Over Each Element in ArrayArray Reduce TransformationArray WrapperCache With Time LimitCalculator with Method ChainingCall Function with Custom ContextChange Data TypeCheck if Object Instance of ClassChunk ArrayCompact ObjectCounterCounter IICreate a DataFrame from ListCreate a New ColumnCreate Hello World FunctionDebounceDesign Cancellable FunctionDisplay the First Three RowsDrop Duplicate RowsDrop Missing DataEarliest Finish Time for Land and Water Rides IEarliest Finish Time for Land and Water Rides IIEvent EmitterExecute Asynchronous Functions in ParallelFill Missing DataFilter Elements from ArrayFlatten Deeply Nested ArrayFunction CompositionGenerate Fibonacci SequenceGet the Size of a DataFrameGroup ByInterval CancellationIs Object EmptyJoin Two Arrays by IDMaximum Balanced ShipmentsMaximum Median Sum of Subsequences of Size 3Maximum Number of Subsequences After One InsertingMemoizeMemoize IIMethod ChainingMinimum Jumps to Reach End via Prime TeleportationMinimum Removals to Balance ArrayMinimum Time to Activate StringModify ColumnsNested Array GeneratorPromise Time LimitRename ColumnsReshape Data: ConcatenateReshape Data: MeltReshape Data: PivotReturn Length of Arguments PassedSelect DataSleepSnail TraversalSort ByThreshold Majority QueriesTimeout CancellationTo Be Or Not To BeTrionic Array ITrionic Array II
Page 1 of 59