Problems
All Problems
Section titled “All Problems”Showing 141 solved problems.
Choose a problem below to open the full walkthrough, complexity breakdown, and six-language solutions.
Want a structured view? Open the grouped problem explorer to browse by concept, bundle, and rating tier.
Two SumAdd Two NumbersLongest Substring Without Repeating CharactersMedian of Two Sorted ArraysLongest Palindromic SubstringPalindrome NumberContainer With Most Water3SumLetter Combinations of a Phone NumberRemove Nth Node From End of ListValid ParenthesesMerge Two Sorted ListsGenerate ParenthesesMerge k Sorted ListsReverse Nodes in k-GroupRemove Duplicates from Sorted ArrayRemove ElementSubstring with Concatenation of All WordsSearch in Rotated Sorted ArrayFind First and Last Position of Element in Sorted ArraySearch Insert PositionValid SudokuCombination SumFirst Missing PositiveTrapping Rain WaterJump Game IIPermutationsGroup AnagramsPow(x, n)N-Queens IIMaximum SubarraySpiral MatrixJump GameMerge IntervalsInsert IntervalRotate ListUnique Paths IIMinimum Path SumPlus OneAdd BinarySqrt(x)Climbing StairsSimplify PathEdit DistanceSearch a 2D MatrixMinimum Window SubstringCombinationsWord SearchRemove Duplicates from Sorted Array IIRemove Duplicates from Sorted List IIPartition ListReverse Linked List IIInterleaving StringValidate Binary Search TreeSame TreeSymmetric TreeBinary Tree Level Order TraversalBinary Tree Zigzag Level Order TraversalMaximum Depth of Binary TreeConstruct Binary Tree from Preorder and Inorder TraversalConstruct Binary Tree from Inorder and Postorder TraversalConvert Sorted Array to Binary Search TreePath SumFlatten Binary Tree to Linked ListPopulating Next Right Pointers in Each Node IITriangleBest Time to Buy and Sell StockBest Time to Buy and Sell Stock IIBest Time to Buy and Sell Stock IIIBinary Tree Maximum Path SumValid PalindromeWord LadderLongest Consecutive SequenceSum Root to Leaf NumbersSurrounded RegionsClone GraphSingle NumberSingle Number IICopy List with Random PointerWord BreakLinked List CycleLRU CacheSort ListMax Points on a LineEvaluate Reverse Polish NotationFind Minimum in Rotated Sorted ArrayMin StackFind Peak ElementTwo Sum II – Input Array Is SortedMajority ElementFactorial Trailing ZeroesBinary Search Tree IteratorBest Time to Buy and Sell Stock IVRotate ArrayReverse BitsNumber of 1 BitsHouse RobberBinary Tree Right Side ViewNumber of IslandsBitwise AND of Numbers RangeHappy NumberIsomorphic StringsCourse ScheduleImplement Trie (Prefix Tree)Minimum Size Subarray SumCourse Schedule IIDesign Add and Search Words Data StructureWord Search IIKth Largest Element in ArrayContains DuplicateContains Duplicate IIMaximal SquareCount Complete Tree NodesBasic CalculatorInvert Binary TreeSummary RangesKth Smallest Element in a BSTLowest Common Ancestor of a Binary Search TreeLowest Common Ancestor of a Binary TreeProduct of Array Except SelfValid AnagramMissing NumberWord PatternFind Median from Data StreamLongest Increasing SubsequenceCoin ChangeTop K Frequent ElementsIntersection of Two ArraysFind K Pairs with Smallest SumsRansom NoteEvaluate DivisionConstruct Quad TreeMinimum Genetic MutationMinimum Number of Arrows to Burst BalloonsIPOContiguous ArrayMinimum Absolute Difference in BSTSubarray Sum Equals KAverage of Levels in Binary TreeSnakes and LaddersMaximum Sum Circular Subarray