Practice

Problems grouped by difficulty and pattern. Hide the pattern name and use “What pattern is this?” mode to test recognition: read the statement, constraints and examples, commit to an approach, then see the clues.

103 problems · quiz score 0/0
Two SumeasyGroup AnagramsmediumDesign HashMapeasyInsert Delete GetRandom O(1)mediumRepeated DNA SequencesmediumLongest Substring Without Repeating CharactersmediumMinimum Window SubstringhardMax Consecutive Ones IIImediumLongest Repeating Character ReplacementmediumFruit Into BasketsmediumPermutation in StringmediumSliding Window Maximumhard3SummediumContainer With Most WatermediumTwo Sum II — Sorted InputeasyRemove Duplicates from Sorted ArrayeasyMove ZeroeseasySort Colors (Dutch National Flag)mediumTrapping Rain WaterhardInterval List IntersectionsmediumLinked List CycleeasyMiddle of the Linked ListeasyFind the Duplicate NumbermediumReverse Linked ListeasyLRU CachemediumMerge k Sorted ListshardSearch in Rotated Sorted ArraymediumKoko Eating BananasmediumKth Smallest Element in a BSTmediumSubarray Sum Equals KmediumProduct of Array Except SelfmediumCorporate Flight BookingsmediumRange Sum Query 2D — ImmutablemediumValid ParentheseseasyMin StackmediumDaily TemperaturesmediumNext Greater ElementeasyLargest Rectangle in HistogramhardCar FleetmediumKth Largest Element in an ArraymediumTop K Frequent ElementsmediumKth Largest Element in a StreameasyFind Median from Data StreamhardTask SchedulermediumMeeting Rooms IImediumMerge IntervalsmediumNon-overlapping IntervalsmediumNumber of IslandsmediumBinary Tree Level Order TraversalmediumWord LadderhardShortest Path in Binary MatrixmediumRotting OrangesmediumClone GraphmediumShortest Path Visiting All NodeshardNumber of Connected ComponentsmediumIs Graph Bipartite?mediumCritical Connections in a NetworkhardReconstruct ItineraryhardNetwork Delay TimemediumCheapest Flights Within K StopsmediumMin Cost to Connect All PointsmediumRedundant ConnectionmediumCourse SchedulemediumAlien DictionaryhardValidate Binary Search TreemediumLowest Common Ancestor of a Binary TreemediumBinary Tree Maximum Path SumhardSerialize and Deserialize Binary TreehardN-QueenshardSubsetsmediumPermutationsmediumCombination SummediumWord SearchmediumSudoku SolverhardImplement Trie (Prefix Tree)mediumWord Search IIhardClimbing StairseasyHouse RobbermediumCoin ChangemediumWord BreakmediumLongest Increasing SubsequencemediumLongest Common SubsequencemediumEdit DistancemediumPartition Equal Subset SummediumUnique PathsmediumLongest Palindromic SubstringmediumBurst BalloonshardMatrix Chain MultiplicationhardMaximum SubarraymediumGas StationmediumJump GamemediumActivity SelectioneasyFractional KnapsackeasyJob Sequencing with DeadlinesmediumHuffman CodingmediumPow(x, n)mediumCount PrimesmediumSingle NumbereasyCounting BitseasyBit Counting TrickseasyRange Sum Query — MutablemediumRange XOR Queries with UpdatesmediumFind the Index of the First Occurrenceeasy