2Trapping Rain WaterHardArrayTwo PointersDynamic Programming
Solve → 3Best Time to Buy and Sell StockEasyArrayDynamic Programming
Solve → 43SumMediumArrayTwo PointersSorting
Solve → 5Concatenation of ArrayEasyArraySimulation
Solve → 6Median of Two Sorted ArraysHardArrayBinary SearchDivide and Conquer
Solve → 7Maximum SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 8Longest Consecutive SequenceMediumArrayHash TableUnion-Find
Solve → 9Remove Duplicates from Sorted ArrayEasyArrayTwo Pointers
Solve → 10Majority ElementEasyArrayHash TableDivide and Conquer
Solve → 11N-QueensHardArrayBacktracking
Solve → 12Spiral MatrixMediumArrayMatrixSimulation
Solve → 13Split Array Largest SumHardArrayBinary SearchDynamic Programming
Solve → 14Group AnagramsMediumArrayHash TableString
Solve → 15Container With Most WaterMediumArrayTwo PointersGreedy
Solve → 16Rotate ArrayMediumArrayMathTwo Pointers
Solve → 17Merge Sorted ArrayEasyArrayTwo PointersSorting
Solve → 18Search in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 19Longest Common PrefixEasyArrayStringTrie
Solve → 20Longest Increasing SubsequenceMediumArrayBinary SearchDynamic Programming
Solve → 21Rotate ImageMediumArrayMathMatrix
Solve → 22Block Placement QueriesHardArrayBinary SearchBinary Indexed Tree
Solve → 23Coin ChangeMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 24Earliest Finish Time for Land and Water Rides IIMediumArrayTwo PointersBinary Search
Solve → 25Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 26Search in Rotated Sorted Array IIMediumArrayBinary Search
Solve → 27Largest Rectangle in HistogramHardArrayStackMonotonic Stack
Solve → 28Missing NumberEasyArrayHash TableMath
Solve → 29First Missing PositiveHardArrayHash Table
Solve → 30Find the Highest AltitudeEasyArrayPrefix Sum
Solve → 31Count PrimesMediumArrayMathEnumeration
Solve → 32Jump GameMediumArrayDynamic ProgrammingGreedy
Solve → 33Find the Length of the Longest Common PrefixMediumArrayHash TableString
Solve → 34Subarray Sum Equals KMediumArrayHash TablePrefix Sum
Solve → 35Binary SearchEasyArrayBinary Search
Solve → 36Partition Equal Subset SumMediumArrayDynamic Programming
Solve → 37Minimum Element After Replacement With Digit SumEasyArrayMath
Solve → 38Flood FillEasyArrayDepth-First SearchBreadth-First Search
Solve → 39Sort ColorsMediumArrayTwo PointersSorting
Solve → 40Shuffle the ArrayEasyArray
Solve → 41Sort an ArrayMediumArrayDivide and ConquerSorting
Solve → 42Earliest Finish Time for Land and Water Rides IEasyArrayTwo PointersBinary Search
Solve → 434SumMediumArrayTwo PointersSorting
Solve → 44Maximum Product SubarrayMediumArrayDynamic Programming
Solve → 45Left and Right Sum DifferencesEasyArrayPrefix Sum
Solve → 46Next Greater Element IIMediumArrayStackMonotonic Stack
Solve → 47Number of Ways to Assign Edge Weights IIHardArrayMathDynamic Programming
Solve → 48Can Make Arithmetic Progression From SequenceEasyArraySorting
Solve → 49Fruit Into BasketsMediumArrayHash TableSliding Window
Solve → 50Find the Duplicate NumberMediumArrayTwo PointersBinary Search
Solve → 51Koko Eating BananasMediumArrayBinary Search
Solve → 52Meeting Rooms IIMediumArrayTwo PointersGreedy
Solve → 53Intersection of Two ArraysEasyArrayHash TableTwo Pointers
Solve → 54Subarray Product Less Than KMediumArrayBinary SearchSliding Window
Solve → 55Search Insert PositionEasyArrayBinary Search
Solve → 56Insert Delete GetRandom O(1)MediumArrayHash TableMath
Solve → 57Search a 2D Matrix IIMediumArrayBinary SearchDivide and Conquer
Solve → 58Create Binary Tree From DescriptionsMediumArrayHash TableTree
Solve → 59Find Target Indices After Sorting ArrayEasyArrayBinary SearchSorting
Solve → 60Maximum Total Subarray Value IMediumArrayGreedy
Solve → 62Surrounded RegionsMediumArrayDepth-First SearchBreadth-First Search
Solve → 63Sliding Window MaximumHardArrayQueueSliding Window
Solve → 64Maximum Total Subarray Value IIHardArrayGreedySegment Tree
Solve → 65Largest NumberMediumArrayStringGreedy
Solve → 66Maximum Sum Circular SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 67Last Stone Weight IIMediumArrayDynamic Programming
Solve → 68Find Numbers with Even Number of DigitsEasyArrayMath
Solve → 69Best Time to Buy and Sell Stock IIMediumArrayDynamic ProgrammingGreedy
Solve → 70Single NumberEasyArrayBit Manipulation
Solve → 71Remove Duplicates from Sorted Array IIMediumArrayTwo Pointers
Solve → 72Range Sum Query 2D - ImmutableMediumArrayDesignMatrix
Solve → 73Find Words That Can Be Formed by CharactersEasyArrayHash TableString
Solve → 74Remove ElementEasyArrayTwo Pointers
Solve → 75Daily TemperaturesMediumArrayStackMonotonic Stack
Solve → 763Sum ClosestMediumArrayTwo PointersSorting
Solve → 77Subsets IIMediumArrayBacktrackingBit Manipulation
Solve → 78Reverse PairsHardArrayBinary SearchDivide and Conquer
Solve → 79Maximum Average Subarray IEasyArraySliding Window
Solve → 80Majority Element IIMediumArrayHash TableSorting
Solve → 81Subarrays Distinct Element Sum of Squares IEasyArrayHash TableSegment Tree
Solve → 82Pacific Atlantic Water FlowMediumArrayDepth-First SearchBreadth-First Search
Solve → 83Set Matrix ZeroesMediumArrayHash TableMatrix
Solve → 84Contains Duplicate IIEasyArrayHash TableSliding Window
Solve → 85Burst BalloonsHardArrayDynamic Programming
Solve → 86Find Minimum in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 87Can Place FlowersEasyArrayGreedy
Solve → 88Kth Largest Element in an ArrayMediumArrayDivide and ConquerSorting
Solve → 89Maximum Sum Obtained of Any PermutationMediumArrayGreedySorting
Solve → 90Running Sum of 1d ArrayEasyArrayPrefix Sum
Solve → 91Minimum Number of Arrows to Burst BalloonsMediumArrayGreedySorting
Solve → 92Contains DuplicateEasyArrayHash TableSorting
Solve → 93Two SumEasyArrayHash Table
Solve → 943SumMediumArrayTwo PointersSorting
Solve → 95Best Time to Buy and Sell StockEasyArrayDynamic Programming
Solve → 96Concatenation of ArrayEasyArraySimulation
Solve → 97Trapping Rain WaterHardArrayTwo PointersDynamic Programming
Solve → 98Median of Two Sorted ArraysHardArrayBinary SearchDivide and Conquer
Solve → 99Longest Common PrefixEasyArrayStringTrie
Solve → 100Merge Sorted ArrayEasyArrayTwo PointersSorting
Solve → 101Remove Duplicates from Sorted ArrayEasyArrayTwo Pointers
Solve → 102Longest Consecutive SequenceMediumArrayHash TableUnion-Find
Solve → 103Merge IntervalsMediumArraySorting
Solve → 104Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 105Maximum SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 106Container With Most WaterMediumArrayTwo PointersGreedy
Solve → 107Majority ElementEasyArrayHash TableDivide and Conquer
Solve → 108Spiral MatrixMediumArrayMatrixSimulation
Solve → 109Search in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 110Koko Eating BananasMediumArrayBinary Search
Solve → 111Subarray Sum Equals KMediumArrayHash TablePrefix Sum
Solve → 112Group AnagramsMediumArrayHash TableString
Solve → 113Top K Frequent ElementsMediumArrayHash TableDivide and Conquer
Solve → 1144SumMediumArrayTwo PointersSorting
Solve → 115Longest Increasing SubsequenceMediumArrayBinary SearchDynamic Programming
Solve → 116Remove ElementEasyArrayTwo Pointers
Solve → 117Jump GameMediumArrayDynamic ProgrammingGreedy
Solve → 118Next Greater Element IIMediumArrayStackMonotonic Stack
Solve → 119Rotate ImageMediumArrayMathMatrix
Solve → 120Meeting Rooms IIMediumArrayTwo PointersGreedy
Solve → 121Coin ChangeMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 122Intersection of Two ArraysEasyArrayHash TableTwo Pointers
Solve → 123Count PrimesMediumArrayMathEnumeration
Solve → 124Sort ColorsMediumArrayTwo PointersSorting
Solve → 125Rotate ArrayMediumArrayMathTwo Pointers
Solve → 126Contains DuplicateEasyArrayHash TableSorting
Solve → 127First Missing PositiveHardArrayHash Table
Solve → 128N-QueensHardArrayBacktracking
Solve → 129Split Array Largest SumHardArrayBinary SearchDynamic Programming
Solve → 130Max Consecutive Ones IIIMediumArrayBinary SearchSliding Window
Solve → 131Next PermutationMediumArrayTwo Pointers
Solve → 132Largest Rectangle in HistogramHardArrayStackMonotonic Stack
Solve → 133Kth Largest Element in an ArrayMediumArrayDivide and ConquerSorting
Solve → 134Product of Array Except SelfMediumArrayPrefix Sum
Solve → 135Binary SearchEasyArrayBinary Search
Solve → 136Find the Duplicate NumberMediumArrayTwo PointersBinary Search
Solve → 137Missing NumberEasyArrayHash TableMath
Solve → 138Can Make Arithmetic Progression From SequenceEasyArraySorting
Solve → 139Next Greater Element IEasyArrayHash TableStack
Solve → 140Find the Length of the Longest Common PrefixMediumArrayHash TableString
Solve → 141Search Insert PositionEasyArrayBinary Search
Solve → 142Single Element in a Sorted ArrayMediumArrayBinary Search
Solve → 143Move ZeroesEasyArrayTwo Pointers
Solve → 144Max Consecutive OnesEasyArray
Solve → 145Find All Numbers Disappeared in an ArrayEasyArrayHash Table
Solve → 1463Sum ClosestMediumArrayTwo PointersSorting
Solve → 147Maximum Product SubarrayMediumArrayDynamic Programming
Solve → 148Running Sum of 1d ArrayEasyArrayPrefix Sum
Solve → 149Set MismatchEasyArrayHash TableBit Manipulation
Solve → 150PermutationsMediumArrayBacktracking
Solve → 151Largest NumberMediumArrayStringGreedy
Solve → 152Task SchedulerMediumArrayHash TableGreedy
Solve → 153Maximum Score From Grid OperationsHardArrayDynamic ProgrammingMatrix
Solve → 154Find the Prefix Common Array of Two ArraysMediumArrayHash TableBit Manipulation
Solve → 155Pascal's TriangleEasyArrayDynamic Programming
Solve → 156Insert Delete GetRandom O(1)MediumArrayHash TableMath
Solve → 157Rotting OrangesMediumArrayBreadth-First SearchMatrix
Solve → 158Set Matrix ZeroesMediumArrayHash TableMatrix
Solve → 159Surrounded RegionsMediumArrayDepth-First SearchBreadth-First Search
Solve → 160Squares of a Sorted ArrayEasyArrayTwo PointersSorting
Solve → 161Sort an ArrayMediumArrayDivide and ConquerSorting
Solve → 162Frequency of the Most Frequent ElementMediumArrayBinary SearchGreedy
Solve → 163Maximum Average Subarray IEasyArraySliding Window
Solve → 164Subsets IIMediumArrayBacktrackingBit Manipulation
Solve → 165Assign CookiesEasyArrayTwo PointersGreedy
Solve → 166Shuffle the ArrayEasyArray
Solve → 167Longest Increasing Path in a MatrixHardArrayDynamic ProgrammingDepth-First Search
Solve → 168Daily TemperaturesMediumArrayStackMonotonic Stack
Solve → 169Capacity To Ship Packages Within D DaysMediumArrayBinary Search
Solve → 170Text JustificationHardArrayStringSimulation
Solve → 171Apply SubstitutionsMediumArrayHash TableString
Solve → 172Maximum Path Score in a GridMediumArrayDynamic ProgrammingMatrix
Solve → 173Search in Rotated Sorted Array IIMediumArrayBinary Search
Solve → 174Earliest Finish Time for Land and Water Rides IIMediumArrayTwo PointersBinary Search
Solve → 176Single NumberEasyArrayBit Manipulation
Solve → 177House RobberMediumArrayDynamic Programming
Solve → 178Find Peak ElementMediumArrayBinary Search
Solve → 179SubsetsMediumArrayBacktrackingBit Manipulation
Solve → 180Search a 2D MatrixMediumArrayBinary SearchMatrix
Solve → 181Swim in Rising WaterHardArrayBinary SearchDepth-First Search
Solve → 182Car PoolingMediumArraySortingHeap (Priority Queue)
Solve → 183Jump Game IIMediumArrayDynamic ProgrammingGreedy
Solve → 184Fruit Into BasketsMediumArrayHash TableSliding Window
Solve → 185The Earliest Moment When Everyone Become FriendsMediumArrayUnion-FindSorting
Solve → 186Find First and Last Position of Element in Sorted ArrayMediumArrayBinary Search
Solve → 187Contains Duplicate IIEasyArrayHash TableSliding Window
Solve → 188Combination SumMediumArrayBacktracking
Solve → 189Sliding Window MaximumHardArrayQueueSliding Window
Solve → 190Bus RoutesHardArrayHash TableBreadth-First Search
Solve → 191Sum of Subarray MinimumsMediumArrayDynamic ProgrammingStack
Solve → 192Partition Equal Subset SumMediumArrayDynamic Programming
Solve → 193Search a 2D Matrix IIMediumArrayBinary SearchDivide and Conquer
Solve → 194Target SumMediumArrayDynamic ProgrammingBacktracking
Solve → 195Min Cost Climbing StairsEasyArrayDynamic Programming
Solve → 196House Robber IIMediumArrayDynamic Programming
Solve → 197Jump Game IXMediumArrayDynamic Programming
Solve → 198Best Time to Buy and Sell Stock IIMediumArrayDynamic ProgrammingGreedy
Solve → 199Find Numbers with Even Number of DigitsEasyArrayMath
Solve → 200Reverse PairsHardArrayBinary SearchDivide and Conquer
Solve → 201Flood FillEasyArrayDepth-First SearchBreadth-First Search
Solve → 202Block Placement QueriesHardArrayBinary SearchBinary Indexed Tree
Solve → 203Left and Right Sum DifferencesEasyArrayPrefix Sum
Solve → 204Majority Element IIMediumArrayHash TableSorting
Solve → 205Number of Ways to Assign Edge Weights IIHardArrayMathDynamic Programming
Solve → 206Find the Highest AltitudeEasyArrayPrefix Sum
Solve → 207Word SearchMediumArrayStringBacktracking
Solve → 208Two Sum II - Input Array Is SortedMediumArrayTwo PointersBinary Search
Solve → 209Number of Visible People in a QueueHardArrayStackMonotonic Stack
Solve → 210Insert IntervalMediumArray
Solve → 211Check if Array Is Sorted and RotatedEasyArray
Solve → 212Third Maximum NumberEasyArraySorting
Solve → 213Remove Duplicates from Sorted Array IIMediumArrayTwo Pointers
Solve → 214Word BreakMediumArrayHash TableString
Solve → 215Maximal RectangleHardArrayDynamic ProgrammingStack
Solve → 216Kth Missing Positive NumberEasyArrayBinary Search
Solve → 217Divide Array in Sets of K Consecutive NumbersMediumArrayHash TableGreedy
Solve → 218Find And Replace in StringMediumArrayHash TableString
Solve → 219Asteroid CollisionMediumArrayStackSimulation
Solve → 220Valid SudokuMediumArrayHash TableMatrix
Solve → 221Minimum Operations to Transform Array into Alternating PrimeMediumArrayMathTwo Pointers
Solve → 222Minimize Hamming Distance After Swap OperationsMediumArrayDepth-First SearchUnion-Find
Solve → 223Words Within Two Edits of DictionaryMediumArrayStringTrie
Solve → 224Maximize the Distance Between Points on a SquareHardArrayMathBinary Search
Solve → 22501 MatrixMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 226Partition Array for Maximum SumMediumArrayDynamic Programming
Solve → 227Largest Divisible SubsetMediumArrayMathDynamic Programming
Solve → 228Remove BoxesHardArrayDynamic ProgrammingMemoization
Solve → 229Minimum Falling Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 230Minimum Jumps to Reach End via Prime TeleportationMediumArrayHash TableMath
Solve → 231Minimum Initial Energy to Finish TasksHardArrayGreedySorting
Solve → 232Corporate Flight BookingsMediumArrayPrefix Sum
Solve → 233Check if Array is GoodEasyArrayHash TableSorting
Solve → 234Minimum Moves to Make Array ComplementaryMediumArrayHash TablePrefix Sum
Solve → 235Find Minimum in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 236Construct Binary Tree from Preorder and Inorder TraversalMediumArrayHash TableDivide and Conquer
Solve → 237K-diff Pairs in an ArrayMediumArrayHash TableTwo Pointers
Solve → 238Minimum Element After Replacement With Digit SumEasyArrayMath
Solve → 239Last Stone Weight IIMediumArrayDynamic Programming
Solve → 240Earliest Finish Time for Land and Water Rides IEasyArrayTwo PointersBinary Search
Solve → 241Burst BalloonsHardArrayDynamic Programming
Solve → 242Number of Longest Increasing SubsequenceMediumArrayDynamic ProgrammingBinary Indexed Tree
Solve → 243Range Sum Query 2D - ImmutableMediumArrayDesignMatrix
Solve → 244Maximal SquareMediumArrayDynamic ProgrammingMatrix
Solve → 245Maximum Sum Circular SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 246Minimum Number of Arrows to Burst BalloonsMediumArrayGreedySorting
Solve → 247Russian Doll EnvelopesHardArrayBinary SearchDynamic Programming
Solve → 248Coin Change IIMediumArrayDynamic Programming
Solve → 249Sequence ReconstructionMediumArrayGraph TheoryTopological Sort
Solve → 250Rearrange Array Elements by SignMediumArrayTwo PointersSimulation
Solve → 251Find All Duplicates in an ArrayMediumArrayHash TableSorting
Solve → 252Build an Array With Stack OperationsMediumArrayStackSimulation
Solve → 253Random Pick with WeightMediumArrayMathBinary Search
Solve → 254Maximum Good Subarray SumMediumArrayHash TablePrefix Sum
Solve → 255Matrix Similarity After Cyclic ShiftsEasyArrayMathMatrix
Solve → 256Find in Mountain ArrayHardArrayBinary SearchInteractive
Solve → 257Subarray Sums Divisible by KMediumArrayHash TablePrefix Sum
Solve → 258Minimum Distance Between Three Equal Elements IIMediumArrayHash Table
Solve → 259Maximize Cyclic Partition ScoreHardArrayDynamic Programming
Solve → 260Inverse Coin ChangeMediumArrayDynamic Programming
Solve → 262Closest Equal Element QueriesMediumArrayHash TableBinary Search
Solve → 263Final Value of Variable After Performing OperationsEasyArrayStringSimulation
Solve → 264Two Furthest Houses With Different ColorsEasyArrayGreedy
Solve → 265Sum of DistancesMediumArrayHash TablePrefix Sum
Solve → 266Find Indices of Stable MountainsEasyArray
Solve → 267Detect Cycles in 2D GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 268Check if There is a Valid Path in a GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 269Minimum Number of Days to Make m BouquetsMediumArrayBinary Search
Solve → 270Delete Nodes And Return ForestMediumArrayHash TableTree
Solve → 271Minimum Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 272Rotate FunctionMediumArrayMathDynamic Programming
Solve → 273Shortest BridgeMediumArrayDepth-First SearchBreadth-First Search
Solve → 274Minimum Cost For TicketsMediumArrayDynamic Programming
Solve → 275Rotating the BoxMediumArrayTwo PointersMatrix
Solve → 276Cyclically Rotating a GridMediumArrayMatrixSimulation
Solve → 277Separate the Digits in an ArrayEasyArraySimulation
Solve → 278H-IndexMediumArraySortingCounting Sort
Solve → 279Jump Game IVHardArrayHash TableBreadth-First Search
Solve → 280Binary Subarrays With SumMediumArrayHash TableSliding Window
Solve → 281Best Time to Buy and Sell Stock with CooldownMediumArrayDynamic Programming
Solve → 282Solving Questions With BrainpowerMediumArrayDynamic Programming
Solve → 283Jump Game VHardArrayDynamic ProgrammingSorting
Solve → 284Minimum Common ValueEasyArrayHash TableTwo Pointers
Solve → 285Count Square Submatrices with All OnesMediumArrayDynamic ProgrammingMatrix
Solve → 286Destroying AsteroidsMediumArrayGreedySorting
Solve → 287Longest Non-Decreasing Subarray After Replacing at Most One ElementMediumArrayDynamic Programming
Solve → 288Subarray Product Less Than KMediumArrayBinary SearchSliding Window
Solve → 289Combination Sum IVMediumArrayDynamic Programming
Solve → 290Create Binary Tree From DescriptionsMediumArrayHash TableTree
Solve → 291Find Target Indices After Sorting ArrayEasyArrayBinary SearchSorting
Solve → 292Maximum Total Subarray Value IMediumArrayGreedy
Solve → 293Maximum Points You Can Obtain from CardsMediumArraySliding WindowPrefix Sum
Solve → 294Reshape the MatrixEasyArrayMatrixSimulation
Solve → 295Maximum GapMediumArraySortingBucket Sort
Solve → 296Maximum Total Subarray Value IIHardArrayGreedySegment Tree
Solve → 297Count Partitions with Even Sum DifferenceEasyArrayMathPrefix Sum
Solve → 298Maximum XOR of Two Numbers in an ArrayMediumArrayHash TableBit Manipulation
Solve → 299Evaluate DivisionMediumArrayStringDepth-First Search
Solve → 300Find Words That Can Be Formed by CharactersEasyArrayHash TableString
Solve → 30124 GameHardArrayMathBacktracking
Solve → 302Boats to Save PeopleMediumArrayTwo PointersGreedy
Solve → 303Number of Students Unable to Eat LunchEasyArrayStackQueue
Solve → 304Car FleetMediumArrayStackSorting
Solve → 305TriangleMediumArrayDynamic Programming
Solve → 306Subarrays Distinct Element Sum of Squares IEasyArrayHash TableSegment Tree
Solve → 307Pacific Atlantic Water FlowMediumArrayDepth-First SearchBreadth-First Search
Solve → 308Minimum Size Subarray SumMediumArrayBinary SearchSliding Window
Solve → 309Partition Array Into Two Arrays to Minimize Sum DifferenceHardArrayTwo PointersBinary Search
Solve → 310Max Area of IslandMediumArrayDepth-First SearchBreadth-First Search
Solve → 311Can Place FlowersEasyArrayGreedy
Solve → 312Minimum Absolute Distance Between Mirror PairsMediumArrayHash TableMath
Solve → 313Maximum Sum Obtained of Any PermutationMediumArrayGreedySorting
Solve → 314Snapshot ArrayMediumArrayHash TableBinary Search
Solve → 315Minimum Area Rectangle IIMediumArrayHash TableMath
Solve → 316Cherry PickupHardArrayDynamic ProgrammingMatrix
Solve → 317Count of Range SumHardArrayBinary SearchDivide and Conquer
Solve → 318Count Subarrays With Majority Element IMediumArrayHash TableDivide and Conquer
Solve → 319Frog JumpHardArrayDynamic Programming
Solve → 320Two SumEasyArrayHash Table
Solve → 321Longest Common PrefixEasyArrayStringTrie
Solve → 322Best Time to Buy and Sell StockEasyArrayDynamic Programming
Solve → 323Concatenation of ArrayEasyArraySimulation
Solve → 324Trapping Rain WaterHardArrayTwo PointersDynamic Programming
Solve → 325Median of Two Sorted ArraysHardArrayBinary SearchDivide and Conquer
Solve → 3263SumMediumArrayTwo PointersSorting
Solve → 327Container With Most WaterMediumArrayTwo PointersGreedy
Solve → 328Longest Consecutive SequenceMediumArrayHash TableUnion-Find
Solve → 329Majority ElementEasyArrayHash TableDivide and Conquer
Solve → 330Maximum SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 331Merge IntervalsMediumArraySorting
Solve → 332Subarray Sum Equals KMediumArrayHash TablePrefix Sum
Solve → 333Remove Duplicates from Sorted ArrayEasyArrayTwo Pointers
Solve → 334Merge Sorted ArrayEasyArrayTwo PointersSorting
Solve → 335Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 336Spiral MatrixMediumArrayMatrixSimulation
Solve → 337Koko Eating BananasMediumArrayBinary Search
Solve → 338Top K Frequent ElementsMediumArrayHash TableDivide and Conquer
Solve → 339Kth Largest Element in an ArrayMediumArrayDivide and ConquerSorting
Solve → 340Next PermutationMediumArrayTwo Pointers
Solve → 341Group AnagramsMediumArrayHash TableString
Solve → 342Search in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 343N-QueensHardArrayBacktracking
Solve → 344Move ZeroesEasyArrayTwo Pointers
Solve → 345Can Make Arithmetic Progression From SequenceEasyArraySorting
Solve → 346House RobberMediumArrayDynamic Programming
Solve → 3474SumMediumArrayTwo PointersSorting
Solve → 348Rotate ImageMediumArrayMathMatrix
Solve → 349PermutationsMediumArrayBacktracking
Solve → 350Jump GameMediumArrayDynamic ProgrammingGreedy
Solve → 351Sort ColorsMediumArrayTwo PointersSorting
Solve → 352Rotate ArrayMediumArrayMathTwo Pointers
Solve → 353Product of Array Except SelfMediumArrayPrefix Sum
Solve → 354Two Sum II - Input Array Is SortedMediumArrayTwo PointersBinary Search
Solve → 355Intersection of Two ArraysEasyArrayHash TableTwo Pointers
Solve → 357Contains DuplicateEasyArrayHash TableSorting
Solve → 358Pascal's TriangleEasyArrayDynamic Programming
Solve → 359Missing NumberEasyArrayHash TableMath
Solve → 360Longest Increasing SubsequenceMediumArrayBinary SearchDynamic Programming
Solve → 361Remove ElementEasyArrayTwo Pointers
Solve → 362Single NumberEasyArrayBit Manipulation
Solve → 363Split Array Largest SumHardArrayBinary SearchDynamic Programming
Solve → 364Binary SearchEasyArrayBinary Search
Solve → 365Largest Rectangle in HistogramHardArrayStackMonotonic Stack
Solve → 366Meeting Rooms IIMediumArrayTwo PointersGreedy
Solve → 367SubsetsMediumArrayBacktrackingBit Manipulation
Solve → 368Single Element in a Sorted ArrayMediumArrayBinary Search
Solve → 369Number of Visible People in a QueueHardArrayStackMonotonic Stack
Solve → 370Shuffle the ArrayEasyArray
Solve → 3713Sum ClosestMediumArrayTwo PointersSorting
Solve → 372Find First and Last Position of Element in Sorted ArrayMediumArrayBinary Search
Solve → 373Maximal RectangleHardArrayDynamic ProgrammingStack
Solve → 374Find Peak ElementMediumArrayBinary Search
Solve → 375Sliding Window MaximumHardArrayQueueSliding Window
Solve → 376Running Sum of 1d ArrayEasyArrayPrefix Sum
Solve → 377Find All Numbers Disappeared in an ArrayEasyArrayHash Table
Solve → 378Next Greater Element IIMediumArrayStackMonotonic Stack
Solve → 379Search Insert PositionEasyArrayBinary Search
Solve → 380First Missing PositiveHardArrayHash Table
Solve → 381Russian Doll EnvelopesHardArrayBinary SearchDynamic Programming
Solve → 382Max Consecutive OnesEasyArray
Solve → 383Max Consecutive Ones IIIMediumArrayBinary SearchSliding Window
Solve → 384Combination SumMediumArrayBacktracking
Solve → 385Search a 2D MatrixMediumArrayBinary SearchMatrix
Solve → 386Maximum Product SubarrayMediumArrayDynamic Programming
Solve → 387Coin ChangeMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 388Daily TemperaturesMediumArrayStackMonotonic Stack
Solve → 389Squares of a Sorted ArrayEasyArrayTwo PointersSorting
Solve → 390Sort an ArrayMediumArrayDivide and ConquerSorting
Solve → 391Fruit Into BasketsMediumArrayHash TableSliding Window
Solve → 392Maximum Average Subarray IEasyArraySliding Window
Solve → 393Count PrimesMediumArrayMathEnumeration
Solve → 394Subsets IIMediumArrayBacktrackingBit Manipulation
Solve → 395Insert IntervalMediumArray
Solve → 396Contains Duplicate IIEasyArrayHash TableSliding Window
Solve → 397Rotting OrangesMediumArrayBreadth-First SearchMatrix
Solve → 398Next Greater Element IEasyArrayHash TableStack
Solve → 399Largest NumberMediumArrayStringGreedy
Solve → 400Find the Duplicate NumberMediumArrayTwo PointersBinary Search
Solve → 401Jump Game IIMediumArrayDynamic ProgrammingGreedy
Solve → 402Frequency of the Most Frequent ElementMediumArrayBinary SearchGreedy
Solve → 403Remove Duplicates from Sorted Array IIMediumArrayTwo Pointers
Solve → 404Set MismatchEasyArrayHash TableBit Manipulation
Solve → 405Surrounded RegionsMediumArrayDepth-First SearchBreadth-First Search
Solve → 406Set Matrix ZeroesMediumArrayHash TableMatrix
Solve → 407Best Time to Buy and Sell Stock IIMediumArrayDynamic ProgrammingGreedy
Solve → 408Word BreakMediumArrayHash TableString
Solve → 409Minimum Size Subarray SumMediumArrayBinary SearchSliding Window
Solve → 410Maximal SquareMediumArrayDynamic ProgrammingMatrix
Solve → 411Task SchedulerMediumArrayHash TableGreedy
Solve → 412Search a 2D Matrix IIMediumArrayBinary SearchDivide and Conquer
Solve → 413Check if Array Is Sorted and RotatedEasyArray
Solve → 414Swim in Rising WaterHardArrayBinary SearchDepth-First Search
Solve → 415Third Maximum NumberEasyArraySorting
Solve → 416Sum of Subarray MinimumsMediumArrayDynamic ProgrammingStack
Solve → 417Insert Delete GetRandom O(1)MediumArrayHash TableMath
Solve → 418Partition Equal Subset SumMediumArrayDynamic Programming
Solve → 419Capacity To Ship Packages Within D DaysMediumArrayBinary Search
Solve → 420Rearrange Array Elements by SignMediumArrayTwo PointersSimulation
Solve → 421Assign CookiesEasyArrayTwo PointersGreedy
Solve → 422Min Cost Climbing StairsEasyArrayDynamic Programming
Solve → 423Range Sum Query 2D - ImmutableMediumArrayDesignMatrix
Solve → 425Find the Length of the Longest Common PrefixMediumArrayHash TableString
Solve → 426Search in Rotated Sorted Array IIMediumArrayBinary Search
Solve → 427Target SumMediumArrayDynamic ProgrammingBacktracking
Solve → 428Sudoku SolverHardArrayHash TableBacktracking
Solve → 429Longest Increasing Path in a MatrixHardArrayDynamic ProgrammingDepth-First Search
Solve → 430Coin Change IIMediumArrayDynamic Programming
Solve → 431Flood FillEasyArrayDepth-First SearchBreadth-First Search
Solve → 432Random Pick with WeightMediumArrayMathBinary Search
Solve → 433The Earliest Moment When Everyone Become FriendsMediumArrayUnion-FindSorting
Solve → 434Find All Duplicates in an ArrayMediumArrayHash TableSorting
Solve → 435Find Missing and Repeated ValuesEasyArrayHash TableMath
Solve → 436Separate Squares IMediumArrayBinary Search
Solve → 437Find And Replace in StringMediumArrayHash TableString
Solve → 438Car PoolingMediumArraySortingHeap (Priority Queue)
Solve → 439Find the Highest AltitudeEasyArrayPrefix Sum
Solve → 440Subarrays with K Different IntegersHardArrayHash TableSliding Window
Solve → 441Bus RoutesHardArrayHash TableBreadth-First Search
Solve → 442Longest Balanced Subarray IIHardArrayHash TableDivide and Conquer
Solve → 443Earliest Finish Time for Land and Water Rides IIMediumArrayTwo PointersBinary Search
Solve → 444Pacific Atlantic Water FlowMediumArrayDepth-First SearchBreadth-First Search
Solve → 445Single Number IIMediumArrayBit Manipulation
Solve → 446Valid SudokuMediumArrayHash TableMatrix
Solve → 447Text JustificationHardArrayStringSimulation
Solve → 448Evaluate Reverse Polish NotationMediumArrayMathStack
Solve → 449Find Minimum in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 450Asteroid CollisionMediumArrayStackSimulation
Solve → 451Guess the WordHardArrayMathString
Solve → 453Kth Missing Positive NumberEasyArrayBinary Search
Solve → 454Construct Binary Tree from Preorder and Inorder TraversalMediumArrayHash TableDivide and Conquer
Solve → 455Apply SubstitutionsMediumArrayHash TableString
Solve → 456Partition Array Into Two Arrays to Minimize Sum DifferenceHardArrayTwo PointersBinary Search
Solve → 457Maximum Matrix SumMediumArrayGreedyMatrix
Solve → 458Divide an Array Into Subarrays With Minimum Cost IEasyArraySortingEnumeration
Solve → 459Maximum Score From Grid OperationsHardArrayDynamic ProgrammingMatrix
Solve → 460Maximum Path Score in a GridMediumArrayDynamic ProgrammingMatrix
Solve → 461Find the Prefix Common Array of Two ArraysMediumArrayHash TableBit Manipulation
Solve → 462Left and Right Sum DifferencesEasyArrayPrefix Sum
Solve → 463Burst BalloonsHardArrayDynamic Programming
Solve → 464Evaluate DivisionMediumArrayStringDepth-First Search
Solve → 465Word SearchMediumArrayStringBacktracking
Solve → 466Gas StationMediumArrayGreedy
Solve → 467House Robber IIMediumArrayDynamic Programming
Solve → 468Reverse PairsHardArrayBinary SearchDivide and Conquer
Solve → 469Group Shifted StringsMediumArrayHash TableString
Solve → 470Binary Subarrays With SumMediumArrayHash TableSliding Window
Solve → 471Majority Element IIMediumArrayHash TableSorting
Solve → 472TriangleMediumArrayDynamic Programming
Solve → 473Sequence ReconstructionMediumArrayGraph TheoryTopological Sort
Solve → 474Number of Good PairsEasyArrayHash TableMath
Solve → 475Longest Non-Decreasing Subarray After Replacing at Most One ElementMediumArrayDynamic Programming
Solve → 476Subarray Sums Divisible by KMediumArrayHash TablePrefix Sum
Solve → 477Permutations IIMediumArrayBacktrackingSorting
Solve → 478Divide Array in Sets of K Consecutive NumbersMediumArrayHash TableGreedy
Solve → 479Minimize Maximum Pair Sum in ArrayMediumArrayTwo PointersGreedy
Solve → 480Best Time to Buy and Sell Stock with Transaction FeeMediumArrayDynamic ProgrammingGreedy
Solve → 481Largest Submatrix With RearrangementsMediumArrayGreedySorting
Solve → 482Minimize Hamming Distance After Swap OperationsMediumArrayDepth-First SearchUnion-Find
Solve → 483Block Placement QueriesHardArrayBinary SearchBinary Indexed Tree
Solve → 484Can Place FlowersEasyArrayGreedy
Solve → 485Find K Closest ElementsMediumArrayTwo PointersBinary Search
Solve → 486Accounts MergeMediumArrayHash TableString
Solve → 487Unique Number of OccurrencesEasyArrayHash Table
Solve → 488Count Square Submatrices with All OnesMediumArrayDynamic ProgrammingMatrix
Solve → 489Minimum Number of Days to Make m BouquetsMediumArrayBinary Search
Solve → 490Peak Index in a Mountain ArrayMediumArrayBinary Search
Solve → 491Combination Sum IIMediumArrayBacktracking
Solve → 492Find the Smallest Divisor Given a ThresholdMediumArrayBinary Search
Solve → 493Find K Pairs with Smallest SumsMediumArrayHeap (Priority Queue)
Solve → 494Minimum Time to Finish the RaceHardArrayDynamic Programming
Solve → 495Intersection of Two Arrays IIEasyArrayHash TableTwo Pointers
Solve → 496Design Circular QueueMediumArrayLinked ListDesign
Solve → 497Min Cost to Connect All PointsMediumArrayUnion-FindGraph Theory
Solve → 498Build an Array With Stack OperationsMediumArrayStackSimulation
Solve → 499Range Sum Query - ImmutableEasyArrayDesignPrefix Sum
Solve → 500Count Negative Numbers in a Sorted MatrixEasyArrayBinary SearchMatrix
Solve → 501Last Day Where You Can Still CrossHardArrayBinary SearchDepth-First Search
Solve → 502Tallest BillboardHardArrayDynamic Programming
Solve → 503Maximum Square Area by Removing Fences From a FieldMediumArrayHash TableEnumeration
Solve → 504Maximum Side Length of a Square with Sum Less than or Equal to ThresholdMediumArrayBinary SearchMatrix
Solve → 505Pascal's Triangle IIEasyArrayDynamic Programming
Solve → 506Minimum Absolute DifferenceEasyArraySorting
Solve → 507Minimum Cost Path with TeleportationsHardArrayDynamic ProgrammingMatrix
Solve → 508Minimum Removals to Balance ArrayMediumArrayBinary SearchSliding Window
Solve → 509Maximum Good Subarray SumMediumArrayHash TablePrefix Sum
Solve → 510Shortest Unsorted Continuous SubarrayMediumArrayTwo PointersStack
Solve → 511Array PartitionEasyArrayGreedySorting
Solve → 512Number of Longest Increasing SubsequenceMediumArrayDynamic ProgrammingBinary Indexed Tree
Solve → 51301 MatrixMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 514Partition Array for Maximum SumMediumArrayDynamic Programming
Solve → 515Minimum Falling Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 516Last Stone Weight IIMediumArrayDynamic Programming
Solve → 517Jump Game IXMediumArrayDynamic Programming
Solve → 518Separate the Digits in an ArrayEasyArraySimulation
Solve → 519Minimum Initial Energy to Finish TasksHardArrayGreedySorting
Solve → 520Subarray Product Less Than KMediumArrayBinary SearchSliding Window
Solve → 521Check if Array is GoodEasyArrayHash TableSorting
Solve → 522Minimum Common ValueEasyArrayHash TableTwo Pointers
Solve → 523Find Numbers with Even Number of DigitsEasyArrayMath
Solve → 524Number of Ways to Assign Edge Weights IIHardArrayMathDynamic Programming
Solve → 525Minimum Number of Arrows to Burst BalloonsMediumArrayGreedySorting
Solve → 526Trapping Rain Water IIHardArrayBreadth-First SearchHeap (Priority Queue)
Solve → 527Max Points on a LineHardArrayHash TableMath
Solve → 528Contiguous ArrayMediumArrayHash TablePrefix Sum
Solve → 530Design Hit CounterMediumArrayBinary SearchDesign
Solve → 531Combination Sum IVMediumArrayDynamic Programming
Solve → 532Non-overlapping IntervalsMediumArrayDynamic ProgrammingGreedy
Solve → 533Exclusive Time of FunctionsMediumArrayStack
Solve → 534Convert Sorted Array to Binary Search TreeEasyArrayDivide and ConquerTree
Solve → 535Employee Free TimeHardArraySweep LineSorting
Solve → 536Largest Divisible SubsetMediumArrayMathDynamic Programming
Solve → 537Longest String ChainMediumArrayHash TableTwo Pointers
Solve → 538Arithmetic SlicesMediumArrayDynamic ProgrammingSliding Window
Solve → 539Queue Reconstruction by HeightMediumArrayBinary Indexed TreeSegment Tree
Solve → 540Final Value of Variable After Performing OperationsEasyArrayStringSimulation
Solve → 541Maximum Profit in Job SchedulingHardArrayBinary SearchDynamic Programming
Solve → 542Minimum Operations to Make Array Sum Divisible by KEasyArrayMath
Solve → 543Subdomain Visit CountMediumArrayHash TableString
Solve → 544Alien DictionaryHardArrayStringDepth-First Search
Solve → 545Magic Squares In GridMediumArrayHash TableMath
Solve → 546N-Repeated Element in Size 2N ArrayEasyArrayHash Table
Solve → 547Find All Possible Recipes from Given SuppliesMediumArrayHash TableString
Solve → 548Max Dot Product of Two SubsequencesHardArrayDynamic Programming
Solve → 549Interval List IntersectionsMediumArrayTwo PointersSweep Line
Solve → 550Minimum Time Visiting All PointsEasyArrayMathGeometry
Solve → 551Sort Array By ParityEasyArrayTwo PointersSorting
Solve → 552Find Missing ElementsEasyArrayHash TableSorting
Solve → 553Minimum Cost to Convert String IMediumArrayStringGraph Theory
Solve → 554Maximum Sum of Distinct Subarrays With Length KMediumArrayHash TableSliding Window
Solve → 555Trionic Array IIHardArrayDynamic Programming
Solve → 556Sort Transformed ArrayMediumArrayMathTwo Pointers
Solve → 557Count of Smaller Numbers After SelfHardArrayBinary SearchDivide and Conquer
Solve → 558Find in Mountain ArrayHardArrayBinary SearchInteractive
Solve → 559Valid Mountain ArrayEasyArray
Solve → 560Maximize Cyclic Partition ScoreHardArrayDynamic Programming
Solve → 561Sort Integers by The Number of 1 BitsEasyArrayBit ManipulationSorting
Solve → 562Number of Islands IIHardArrayHash TableUnion-Find
Solve → 563Invalid TransactionsMediumArrayHash TableString
Solve → 564Car FleetMediumArrayStackSorting
Solve → 565Get Biggest Three Rhombus Sums in a GridMediumArrayMathSorting
Solve → 566Minimum Operations to Reduce X to ZeroMediumArrayHash TableBinary Search
Solve → 567Minimum Absolute Difference in Sliding SubmatrixMediumArraySortingMatrix
Solve → 568Construct Uniform Parity Array IEasyArrayMath
Solve → 569Equal Sum Grid Partition IMediumArrayMatrixEnumeration
Solve → 570Equal Sum Grid Partition IIHardArrayHash TableMatrix
Solve → 571Find Pivot IndexEasyArrayPrefix Sum
Solve → 572Delete Nodes And Return ForestMediumArrayHash TableTree
Solve → 573Minimum Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 574Number of Students Unable to Eat LunchEasyArrayStackQueue
Solve → 575Minimum Operations to Transform Array into Alternating PrimeMediumArrayMathTwo Pointers
Solve → 576Minimum Deletions to Make Array DivisibleHardArrayMathSorting
Solve → 577Inverse Coin ChangeMediumArrayDynamic Programming
Solve → 578Words Within Two Edits of DictionaryMediumArrayStringTrie
Solve → 579Maximize the Distance Between Points on a SquareHardArrayMathBinary Search
Solve → 580Detect Cycles in 2D GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 581Remove BoxesHardArrayDynamic ProgrammingMemoization
Solve → 582Cherry PickupHardArrayDynamic ProgrammingMatrix
Solve → 583Rotating the BoxMediumArrayTwo PointersMatrix
Solve → 584Minimum Jumps to Reach End via Prime TeleportationMediumArrayHash TableMath
Solve → 585Corporate Flight BookingsMediumArrayPrefix Sum
Solve → 586Minimum Moves to Make Array ComplementaryMediumArrayHash TablePrefix Sum
Solve → 587H-IndexMediumArraySortingCounting Sort
Solve → 588Maximum XOR of Two Numbers in an ArrayMediumArrayHash TableBit Manipulation
Solve → 589K-diff Pairs in an ArrayMediumArrayHash TableTwo Pointers
Solve → 590Jump Game VHardArrayDynamic ProgrammingSorting
Solve → 591Maximum Points You Can Obtain from CardsMediumArraySliding WindowPrefix Sum
Solve → 592Reshape the MatrixEasyArrayMatrixSimulation
Solve → 593Max Area of IslandMediumArrayDepth-First SearchBreadth-First Search
Solve → 594Find Words That Can Be Formed by CharactersEasyArrayHash TableString
Solve → 595Find Target Indices After Sorting ArrayEasyArrayBinary SearchSorting
Solve → 596Minimum Element After Replacement With Digit SumEasyArrayMath
Solve → 597Earliest Finish Time for Land and Water Rides IEasyArrayTwo PointersBinary Search
Solve → 598Maximum Sum Circular SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 599Boats to Save PeopleMediumArrayTwo PointersGreedy
Solve → 600Maximum Width RampMediumArrayTwo PointersStack
Solve → 601Shortest Path in Binary MatrixMediumArrayBreadth-First SearchMatrix
Solve → 602Transpose MatrixEasyArrayMatrixSimulation
Solve → 603Number of Closed IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 604Shortest BridgeMediumArrayDepth-First SearchBreadth-First Search
Solve → 605Top K Frequent WordsMediumArrayHash TableString
Solve → 606Minimum Pair Removal to Sort Array IEasyArrayHash TableLinked List
Solve → 607Best Time to Buy and Sell Stock with CooldownMediumArrayDynamic Programming
Solve → 608X of a Kind in a Deck of CardsEasyArrayHash TableMath
Solve → 609Construct Binary Search Tree from Preorder TraversalMediumArrayStackTree
Solve → 610Count Special TripletsMediumArrayHash TableCounting
Solve → 611Minimum Area RectangleMediumArrayHash TableMath
Solve → 612Making A Large IslandHardArrayDepth-First SearchBreadth-First Search
Solve → 613Four DivisorsMediumArrayMath
Solve → 614Coloring A BorderMediumArrayDepth-First SearchBreadth-First Search
Solve → 615Path With Minimum EffortMediumArrayBinary SearchDepth-First Search
Solve → 616Separate Squares IIHardArrayBinary SearchSegment Tree
Solve → 617Partition to K Equal Sum SubsetsMediumArrayDynamic ProgrammingBacktracking
Solve → 618Relative RanksEasyArraySortingHeap (Priority Queue)
Solve → 619Find the Largest Area of Square Inside Two RectanglesMediumArrayMathGeometry
Solve → 620Largest Magic SquareMediumArrayMatrixPrefix Sum
Solve → 621Maximize Area of Square Hole in GridMediumArraySorting
Solve → 622Construct the Minimum Bitwise Array IEasyArrayBit Manipulation
Solve → 623Minimum Value to Get Positive Step by Step SumEasyArrayPrefix Sum
Solve → 624RLE IteratorMediumArrayDesignCounting
Solve → 625Minimum Difference Between Highest and Lowest of K ScoresEasyArraySliding WindowSorting
Solve → 626Find the Number of Ways to Place People IIHardArrayMathGeometry
Solve → 627Design a Stack With Increment OperationMediumArrayStackDesign
Solve → 628Max Increase to Keep City SkylineMediumArrayGreedyMatrix
Solve → 629Longest Turbulent SubarrayMediumArrayDynamic ProgrammingSliding Window
Solve → 630Snakes and LaddersMediumArrayBreadth-First SearchMatrix
Solve → 631Transformed ArrayEasyArraySimulation
Solve → 632Longest Arithmetic SubsequenceMediumArrayHash TableBinary Search
Solve → 633Unique Paths IIIHardArrayBacktrackingBit Manipulation
Solve → 634Longest Balanced Subarray IMediumArrayHash TableDivide and Conquer
Solve → 635Make Sum Divisible by PMediumArrayHash TablePrefix Sum
Solve → 636Combination Sum IIIMediumArrayBacktracking
Solve → 637Shuffle StringEasyArrayString
Solve → 638Widest Vertical Area Between Two Points Containing No PointsEasyArraySorting
Solve → 639Extra Characters in a StringMediumArrayHash TableString
Solve → 640Special Positions in a Binary MatrixEasyArrayMatrix
Solve → 641Count Sequences to KHardArrayMathDynamic Programming
Solve → 642Design HashSetEasyArrayHash TableLinked List
Solve → 643Meeting SchedulerMediumArrayTwo PointersSorting
Solve → 644Shortest Subarray with Sum at Least KHardArrayBinary SearchQueue
Solve → 645Count Unhappy FriendsMediumArraySimulation
Solve → 646Minimum Number of Seconds to Make Mountain Height ZeroMediumArrayMathBinary Search
Solve → 647Final Prices With a Special Discount in a ShopEasyArrayStackMonotonic Stack
Solve → 648Build Array from PermutationEasyArraySimulation
Solve → 649Count Submatrices with Top-Left Element and Sum Less Than kMediumArrayMatrixPrefix Sum
Solve → 650Odd Even JumpHardArrayDynamic ProgrammingStack
Solve → 651Island PerimeterEasyArrayDepth-First SearchBreadth-First Search
Solve → 652Verifying an Alien DictionaryEasyArrayHash TableString
Solve → 653Flip Square Submatrix VerticallyEasyArrayTwo PointersMatrix
Solve → 654Determine Whether Matrix Can Be Obtained By RotationEasyArrayMatrix
Solve → 655Minimum Cost to Cut a StickHardArrayDynamic ProgrammingSorting
Solve → 656Unique Paths IIMediumArrayDynamic ProgrammingMatrix
Solve → 657Matrix Similarity After Cyclic ShiftsEasyArrayMathMatrix
Solve → 658Finding 3-Digit Even NumbersEasyArrayHash TableRecursion
Solve → 659Robot CollisionsHardArrayStackSorting
Solve → 660Moving Average from Data StreamEasyArrayDesignQueue
Solve → 661Maximum Partition FactorHardArrayBinary SearchDepth-First Search
Solve → 662Walking Robot SimulationMediumArrayHash TableSimulation
Solve → 663Longest Harmonious SubsequenceEasyArrayHash TableSliding Window
Solve → 664Single Number IIIMediumArrayBit Manipulation
Solve → 665Lemonade ChangeEasyArrayGreedy
Solve → 666Escape The GhostsMediumArrayMath
Solve → 667Max Pair Sum in an ArrayEasyArrayHash Table
Solve → 668Minimum Distance Between Three Equal Elements IIMediumArrayHash Table
Solve → 669Closest Equal Element QueriesMediumArrayHash TableBinary Search
Solve → 670Maximum Distance Between a Pair of ValuesMediumArrayTwo PointersBinary Search
Solve → 671Two Furthest Houses With Different ColorsEasyArrayGreedy
Solve → 672Sum of DistancesMediumArrayHash TablePrefix Sum
Solve → 673Convert 1D Array Into 2D ArrayEasyArrayMatrixSimulation
Solve → 674Find Indices of Stable MountainsEasyArray
Solve → 675Remove Sub-Folders from the FilesystemMediumArrayStringDepth-First Search
Solve → 676Check if There is a Valid Path in a GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 677Rotate FunctionMediumArrayMathDynamic Programming
Solve → 678Minimum Cost For TicketsMediumArrayDynamic Programming
Solve → 679Single-Threaded CPUMediumArraySortingHeap (Priority Queue)
Solve → 680Cyclically Rotating a GridMediumArrayMatrixSimulation
Solve → 681Sum of Subarray RangesMediumArrayStackMonotonic Stack
Solve → 682Jump Game IVHardArrayHash TableBreadth-First Search
Solve → 683Solving Questions With BrainpowerMediumArrayDynamic Programming
Solve → 684Find Common CharactersEasyArrayHash TableString
Solve → 685Nearest Exit from Entrance in MazeMediumArrayBreadth-First SearchMatrix
Solve → 686Find Minimum in Rotated Sorted Array IIHardArrayBinary Search
Solve → 687Destroying AsteroidsMediumArrayGreedySorting
Solve → 688Find Words Containing CharacterEasyArrayString
Solve → 689Construct Quad TreeMediumArrayDivide and ConquerTree
Solve → 690Find Common Elements Between Two ArraysEasyArrayHash Table
Solve → 691Cat and Mouse IIHardArrayMathDynamic Programming
Solve → 692Minimum Processing TimeMediumArrayGreedySorting
Solve → 693Number of Lines To Write StringEasyArrayString
Solve → 694Matrix Block SumMediumArrayMatrixPrefix Sum
Solve → 695Create Binary Tree From DescriptionsMediumArrayHash TableTree
Solve → 696Palindrome PairsHardArrayHash TableString
Solve → 697Path with Maximum ProbabilityMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 698Brick WallMediumArrayHash Table
Solve → 699Maximum Total Subarray Value IMediumArrayGreedy
Solve → 700Maximum GapMediumArraySortingBucket Sort
Solve → 701Weighted Word MappingEasyArrayStringSimulation
Solve → 702Maximum Total Subarray Value IIHardArrayGreedySegment Tree
Solve → 703Count Partitions with Even Sum DifferenceEasyArrayMathPrefix Sum
Solve → 704Number of Matching SubsequencesMediumArrayHash TableString
Solve → 705Design Circular DequeMediumArrayLinked ListDesign
Solve → 706Toeplitz MatrixEasyArrayMatrix
Solve → 707Word Search IIHardArrayStringBacktracking
Solve → 70824 GameHardArrayMathBacktracking
Solve → 709Increasing Triplet SubsequenceMediumArrayGreedy
Solve → 710Number of Pairs of Interchangeable RectanglesMediumArrayHash TableMath
Solve → 711Word Break IIHardArrayHash TableString
Solve → 712Subarrays Distinct Element Sum of Squares IEasyArrayHash TableSegment Tree
Solve → 713Find and Replace PatternMediumArrayHash TableString
Solve → 714Find Players With Zero or One LossesMediumArrayHash TableSorting
Solve → 715Maximum Ice Cream BarsMediumArrayGreedySorting
Solve → 716Max Sum of Rectangle No Larger Than KHardArrayBinary SearchMatrix
Solve → 717Minimum Absolute Distance Between Mirror PairsMediumArrayHash TableMath
Solve → 718Zero Array Transformation IIMediumArrayTwo PointersBinary Search
Solve → 719Maximum Sum Obtained of Any PermutationMediumArrayGreedySorting
Solve → 720Snapshot ArrayMediumArrayHash TableBinary Search
Solve → 721Minimum Area Rectangle IIMediumArrayHash TableMath
Solve → 722Maximum Erasure ValueMediumArrayHash TableSliding Window
Solve → 723Find Greatest Common Divisor of ArrayEasyArrayMathNumber Theory
Solve → 724Count of Range SumHardArrayBinary SearchDivide and Conquer
Solve → 725Count Subarrays With Majority Element IMediumArrayHash TableDivide and Conquer
Solve → 726Frog JumpHardArrayDynamic Programming
Solve → 727Two SumEasyArrayHash Table
Solve → 728Median of Two Sorted ArraysHardArrayBinary SearchDivide and Conquer
Solve → 729Merge Sorted ArrayEasyArrayTwo PointersSorting
Solve → 730Trapping Rain WaterHardArrayTwo PointersDynamic Programming
Solve → 731Longest Common PrefixEasyArrayStringTrie
Solve → 7323SumMediumArrayTwo PointersSorting
Solve → 733Best Time to Buy and Sell StockEasyArrayDynamic Programming
Solve → 734Longest Consecutive SequenceMediumArrayHash TableUnion-Find
Solve → 735Container With Most WaterMediumArrayTwo PointersGreedy
Solve → 736Majority ElementEasyArrayHash TableDivide and Conquer
Solve → 737Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 738Remove Duplicates from Sorted ArrayEasyArrayTwo Pointers
Solve → 739Merge IntervalsMediumArraySorting
Solve → 740Maximum SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 741Subarray Sum Equals KMediumArrayHash TablePrefix Sum
Solve → 742Next PermutationMediumArrayTwo Pointers
Solve → 743Minimum Number of Increments on Subarrays to Form a Target ArrayHardArrayDynamic ProgrammingStack
Solve → 744Meeting Rooms IIMediumArrayTwo PointersGreedy
Solve → 745Remove ElementEasyArrayTwo Pointers
Solve → 746Pascal's TriangleEasyArrayDynamic Programming
Solve → 747Spiral MatrixMediumArrayMatrixSimulation
Solve → 748Move ZeroesEasyArrayTwo Pointers
Solve → 749Search in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 750Largest Rectangle in HistogramHardArrayStackMonotonic Stack
Solve → 751Single NumberEasyArrayBit Manipulation
Solve → 7524SumMediumArrayTwo PointersSorting
Solve → 753Split Array Largest SumHardArrayBinary SearchDynamic Programming
Solve → 754Jump GameMediumArrayDynamic ProgrammingGreedy
Solve → 755Koko Eating BananasMediumArrayBinary Search
Solve → 756N-QueensHardArrayBacktracking
Solve → 757Find Peak ElementMediumArrayBinary Search
Solve → 758Rotate ArrayMediumArrayMathTwo Pointers
Solve → 759Search Insert PositionEasyArrayBinary Search
Solve → 760House RobberMediumArrayDynamic Programming
Solve → 761Rotate ImageMediumArrayMathMatrix
Solve → 762Top K Frequent ElementsMediumArrayHash TableDivide and Conquer
Solve → 763Group AnagramsMediumArrayHash TableString
Solve → 764Kth Largest Element in an ArrayMediumArrayDivide and ConquerSorting
Solve → 765Set Matrix ZeroesMediumArrayHash TableMatrix
Solve → 766Single Element in a Sorted ArrayMediumArrayBinary Search
Solve → 768Sort ColorsMediumArrayTwo PointersSorting
Solve → 769Max Consecutive OnesEasyArray
Solve → 770Maximal SquareMediumArrayDynamic ProgrammingMatrix
Solve → 771Product of Array Except SelfMediumArrayPrefix Sum
Solve → 772Sliding Window MaximumHardArrayQueueSliding Window
Solve → 773Longest Increasing SubsequenceMediumArrayBinary SearchDynamic Programming
Solve → 774Russian Doll EnvelopesHardArrayBinary SearchDynamic Programming
Solve → 775Find First and Last Position of Element in Sorted ArrayMediumArrayBinary Search
Solve → 776Rotting OrangesMediumArrayBreadth-First SearchMatrix
Solve → 777SubsetsMediumArrayBacktrackingBit Manipulation
Solve → 778Maximal RectangleHardArrayDynamic ProgrammingStack
Solve → 779Number of Visible People in a QueueHardArrayStackMonotonic Stack
Solve → 780Binary SearchEasyArrayBinary Search
Solve → 781Count Number of Trapezoids IIHardArrayHash TableMath
Solve → 782Contains DuplicateEasyArrayHash TableSorting
Solve → 783Zero Array Transformation IMediumArrayPrefix Sum
Solve → 784Maximum Product SubarrayMediumArrayDynamic Programming
Solve → 785Intersection of Two ArraysEasyArrayHash TableTwo Pointers
Solve → 786Coin ChangeMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 787Sudoku SolverHardArrayHash TableBacktracking
Solve → 788PermutationsMediumArrayBacktracking
Solve → 789Valid SudokuMediumArrayHash TableMatrix
Solve → 7913Sum ClosestMediumArrayTwo PointersSorting
Solve → 792The Earliest Moment When Everyone Become FriendsMediumArrayUnion-FindSorting
Solve → 793First Missing PositiveHardArrayHash Table
Solve → 794Best Time to Buy and Sell Stock IIMediumArrayDynamic ProgrammingGreedy
Solve → 795Count Number of Trapezoids IMediumArrayHash TableMath
Solve → 796Max Consecutive Ones IIIMediumArrayBinary SearchSliding Window
Solve → 797Jump Game IIMediumArrayDynamic ProgrammingGreedy
Solve → 798Partition Equal Subset SumMediumArrayDynamic Programming
Solve → 799Separate Squares IMediumArrayBinary Search
Solve → 800Text JustificationHardArrayStringSimulation
Solve → 801Contains Duplicate IIEasyArrayHash TableSliding Window
Solve → 802Insert Delete GetRandom O(1)MediumArrayHash TableMath
Solve → 803Concatenation of ArrayEasyArraySimulation
Solve → 804Sum of Subarray MinimumsMediumArrayDynamic ProgrammingStack
Solve → 805Combination SumMediumArrayBacktracking
Solve → 806Two Sum II - Input Array Is SortedMediumArrayTwo PointersBinary Search
Solve → 807Peak Index in a Mountain ArrayMediumArrayBinary Search
Solve → 808Count PrimesMediumArrayMathEnumeration
Solve → 809Fruit Into BasketsMediumArrayHash TableSliding Window
Solve → 810Guess the WordHardArrayMathString
Solve → 811Minimum Area RectangleMediumArrayHash TableMath
Solve → 812Word SearchMediumArrayStringBacktracking
Solve → 813Find the Duplicate NumberMediumArrayTwo PointersBinary Search
Solve → 814Sort an ArrayMediumArrayDivide and ConquerSorting
Solve → 815Subsets IIMediumArrayBacktrackingBit Manipulation
Solve → 816Check if Array Is Sorted and RotatedEasyArray
Solve → 817Apply SubstitutionsMediumArrayHash TableString
Solve → 818Unique Number of OccurrencesEasyArrayHash Table
Solve → 819Surrounded RegionsMediumArrayDepth-First SearchBreadth-First Search
Solve → 820Find All Numbers Disappeared in an ArrayEasyArrayHash Table
Solve → 821Reverse PairsHardArrayBinary SearchDivide and Conquer
Solve → 822Daily TemperaturesMediumArrayStackMonotonic Stack
Solve → 823Insert IntervalMediumArray
Solve → 824Word BreakMediumArrayHash TableString
Solve → 825Largest NumberMediumArrayStringGreedy
Solve → 826Majority Element IIMediumArrayHash TableSorting
Solve → 827Running Sum of 1d ArrayEasyArrayPrefix Sum
Solve → 828Meeting Rooms IIIHardArrayHash TableSorting
Solve → 829Random Pick with WeightMediumArrayMathBinary Search
Solve → 830Missing NumberEasyArrayHash TableMath
Solve → 831Capacity To Ship Packages Within D DaysMediumArrayBinary Search
Solve → 832Zero Array Transformation IIMediumArrayTwo PointersBinary Search
Solve → 833Squares of a Sorted ArrayEasyArrayTwo PointersSorting
Solve → 834Gas StationMediumArrayGreedy
Solve → 835Frequency of the Most Frequent ElementMediumArrayBinary SearchGreedy
Solve → 836Search a 2D MatrixMediumArrayBinary SearchMatrix
Solve → 837Pacific Atlantic Water FlowMediumArrayDepth-First SearchBreadth-First Search
Solve → 838Target SumMediumArrayDynamic ProgrammingBacktracking
Solve → 839Next Greater Element IEasyArrayHash TableStack
Solve → 840Minimum Size Subarray SumMediumArrayBinary SearchSliding Window
Solve → 841Delete Nodes And Return ForestMediumArrayHash TableTree
Solve → 842Single Number IIMediumArrayBit Manipulation
Solve → 843Can Place FlowersEasyArrayGreedy
Solve → 844Maximum Average Subarray IEasyArraySliding Window
Solve → 845Maximum Width RampMediumArrayTwo PointersStack
Solve → 846Search a 2D Matrix IIMediumArrayBinary SearchDivide and Conquer
Solve → 847Asteroid CollisionMediumArrayStackSimulation
Solve → 848Find Minimum in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 849Burst BalloonsHardArrayDynamic Programming
Solve → 850Next Greater Element IIMediumArrayStackMonotonic Stack
Solve → 851Task SchedulerMediumArrayHash TableGreedy
Solve → 852Largest Divisible SubsetMediumArrayMathDynamic Programming
Solve → 853Contiguous ArrayMediumArrayHash TablePrefix Sum
Solve → 854Remove Duplicates from Sorted Array IIMediumArrayTwo Pointers
Solve → 85524 GameHardArrayMathBacktracking
Solve → 856Minimum Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 857Coin Change IIMediumArrayDynamic Programming
Solve → 858Evaluate Reverse Polish NotationMediumArrayMathStack
Solve → 859House Robber IIMediumArrayDynamic Programming
Solve → 860Minimum Number of Days to Make m BouquetsMediumArrayBinary Search
Solve → 862Trapping Rain Water IIHardArrayBreadth-First SearchHeap (Priority Queue)
Solve → 863Find K Closest ElementsMediumArrayTwo PointersBinary Search
Solve → 864Binary Subarrays With SumMediumArrayHash TableSliding Window
Solve → 865Search in Rotated Sorted Array IIMediumArrayBinary Search
Solve → 866Find Missing and Repeated ValuesEasyArrayHash TableMath
Solve → 867Find All Duplicates in an ArrayMediumArrayHash TableSorting
Solve → 868Accounts MergeMediumArrayHash TableString
Solve → 869Shortest Path in a Grid with Obstacles EliminationHardArrayBreadth-First SearchMatrix
Solve → 870Transpose MatrixEasyArrayMatrixSimulation
Solve → 871Shortest Path in Binary MatrixMediumArrayBreadth-First SearchMatrix
Solve → 872Type of TriangleEasyArrayMathSorting
Solve → 873Construct Binary Tree from Preorder and Inorder TraversalMediumArrayHash TableDivide and Conquer
Solve → 874Exclusive Time of FunctionsMediumArrayStack
Solve → 87501 MatrixMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 876Minimum Area Rectangle IIMediumArrayHash TableMath
Solve → 877TriangleMediumArrayDynamic Programming
Solve → 878Combination Sum IIMediumArrayBacktracking
Solve → 879Assign CookiesEasyArrayTwo PointersGreedy
Solve → 880Max Area of IslandMediumArrayDepth-First SearchBreadth-First Search
Solve → 881Swim in Rising WaterHardArrayBinary SearchDepth-First Search
Solve → 882Odd Even JumpHardArrayDynamic ProgrammingStack
Solve → 883Maximum Points You Can Obtain from CardsMediumArraySliding WindowPrefix Sum
Solve → 884Kth Missing Positive NumberEasyArrayBinary Search
Solve → 885Path With Minimum EffortMediumArrayBinary SearchDepth-First Search
Solve → 886Time Taken to Cross the DoorHardArrayQueueSimulation
Solve → 887Design a Stack With Increment OperationMediumArrayStackDesign
Solve → 888Find Pivot IndexEasyArrayPrefix Sum
Solve → 889Top K Frequent WordsMediumArrayHash TableString
Solve → 890Number of Matching SubsequencesMediumArrayHash TableString
Solve → 891Find All Possible Recipes from Given SuppliesMediumArrayHash TableString
Solve → 892Convert Sorted Array to Binary Search TreeEasyArrayDivide and ConquerTree
Solve → 893Word Search IIHardArrayStringBacktracking
Solve → 894Moving Average from Data StreamEasyArrayDesignQueue
Solve → 895Regions Cut By SlashesMediumArrayHash TableDepth-First Search
Solve → 896Count Square Submatrices with All OnesMediumArrayDynamic ProgrammingMatrix
Solve → 897Diagonal TraverseMediumArrayMatrixSimulation
Solve → 898Group Shifted StringsMediumArrayHash TableString
Solve → 899Number of Islands IIHardArrayHash TableUnion-Find
Solve → 900Maximum Number of Events That Can Be AttendedMediumArrayGreedySorting
Solve → 901Longest Increasing Path in a MatrixHardArrayDynamic ProgrammingDepth-First Search
Solve → 902Evaluate DivisionMediumArrayStringDepth-First Search
Solve → 903Making A Large IslandHardArrayDepth-First SearchBreadth-First Search
Solve → 904Unique Paths IIMediumArrayDynamic ProgrammingMatrix
Solve → 905Alien DictionaryHardArrayStringDepth-First Search
Solve → 906Minimum Time DifferenceMediumArrayMathString
Solve → 907Min Cost Climbing StairsEasyArrayDynamic Programming
Solve → 908Kids With the Greatest Number of CandiesEasyArray
Solve → 909Minimum Number of Operations to Move All Balls to Each BoxMediumArrayStringPrefix Sum
Solve → 910Subarrays with K Different IntegersHardArrayHash TableSliding Window
Solve → 911Rearrange Array Elements by SignMediumArrayTwo PointersSimulation
Solve → 912Detect SquaresMediumArrayHash TableDesign
Solve → 913Best Time to Buy and Sell Stock IIIHardArrayDynamic Programming
Solve → 914Increasing Triplet SubsequenceMediumArrayGreedy
Solve → 915K Closest Points to OriginMediumArrayMathDivide and Conquer
Solve → 916Range Sum Query - ImmutableEasyArrayDesignPrefix Sum
Solve → 917Maximum Frequency of an Element After Performing Operations IMediumArrayBinary SearchSliding Window
Solve → 918Richest Customer WealthEasyArrayMatrix
Solve → 919Find the Safest Path in a GridMediumArrayBinary SearchBreadth-First Search
Solve → 920H-IndexMediumArraySortingCounting Sort
Solve → 921Design Hit CounterMediumArrayBinary SearchDesign
Solve → 922Snapshot ArrayMediumArrayHash TableBinary Search
Solve → 923Rank Transform of an ArrayEasyArrayHash TableSorting
Solve → 924Count Special SubsequencesMediumArrayHash TableMath
Solve → 925Zero Array Transformation IIIMediumArrayTwo PointersGreedy
Solve → 926Inverse Coin ChangeMediumArrayDynamic Programming
Solve → 927The Skyline ProblemHardArrayDivide and ConquerBinary Indexed Tree
Solve → 928Best Time to Buy and Sell Stock with CooldownMediumArrayDynamic Programming
Solve → 929Set MismatchEasyArrayHash TableBit Manipulation
Solve → 930Build Array from PermutationEasyArraySimulation
Solve → 931Partition Array Into Two Arrays to Minimize Sum DifferenceHardArrayTwo PointersBinary Search
Solve → 932Minimum Time to Finish the RaceHardArrayDynamic Programming
Solve → 933The Latest Time to Catch a BusMediumArrayTwo PointersBinary Search
Solve → 934Height of Binary Tree After Subtree Removal QueriesHardArrayTreeDepth-First Search
Solve → 935Find K Pairs with Smallest SumsMediumArrayHeap (Priority Queue)
Solve → 936Non-overlapping IntervalsMediumArrayDynamic ProgrammingGreedy
Solve → 937Minimum Falling Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 938Single-Threaded CPUMediumArraySortingHeap (Priority Queue)
Solve → 939Count Days Without MeetingsMediumArraySorting
Solve → 940Count Number of Bad PairsMediumArrayHash TableMath
Solve → 941Maximum Good Subarray SumMediumArrayHash TablePrefix Sum
Solve → 942Longest Subarray of 1's After Deleting One ElementMediumArrayDynamic ProgrammingSliding Window
Solve → 943Sum of Good SubsequencesHardArrayHash TableDynamic Programming
Solve → 944Check if Grid can be Cut into SectionsMediumArraySorting
Solve → 945Reschedule Meetings for Maximum Free Time IMediumArrayGreedySliding Window
Solve → 946Path Existence Queries in a Graph IMediumArrayHash TableBinary Search
Solve → 947Spiral Matrix IIMediumArrayMatrixSimulation
Solve → 948Reconstruct ItineraryHardArrayStringDepth-First Search
Solve → 949Combination Sum IVMediumArrayDynamic Programming
Solve → 950Number of Closed IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 951Continuous SubarraysMediumArrayQueueSliding Window
Solve → 952Find X-Sum of All K-Long Subarrays IEasyArrayHash TableSliding Window
Solve → 953Adjacent Increasing Subarrays Detection IEasyArray
Solve → 954Max Points on a LineHardArrayHash TableMath
Solve → 955Best Time to Buy and Sell Stock IVHardArrayDynamic Programming
Solve → 956Car FleetMediumArrayStackSorting
Solve → 957Minimum Cost to Make at Least One Valid Path in a GridHardArrayBreadth-First SearchGraph Theory
Solve → 958Detonate the Maximum BombsMediumArrayMathDepth-First Search
Solve → 959Count of Smaller Numbers After SelfHardArrayBinary SearchDivide and Conquer
Solve → 960Intersection of Two Arrays IIEasyArrayHash TableTwo Pointers
Solve → 961Flood FillEasyArrayDepth-First SearchBreadth-First Search
Solve → 962Subarray Sums Divisible by KMediumArrayHash TablePrefix Sum
Solve → 963Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArrayQueueSliding Window
Solve → 964Encode and Decode StringsMediumArrayStringDesign
Solve → 966Maximum Number of Distinct Elements After OperationsMediumArrayGreedySorting
Solve → 967Path With Maximum Minimum ValueMediumArrayBinary SearchDepth-First Search
Solve → 968Shortest Subarray with Sum at Least KHardArrayBinary SearchQueue
Solve → 969Maximum XOR of Two Numbers in an ArrayMediumArrayHash TableBit Manipulation
Solve → 970132 PatternMediumArrayBinary SearchStack
Solve → 971Find And Replace in StringMediumArrayHash TableString
Solve → 972Interval List IntersectionsMediumArrayTwo PointersSweep Line
Solve → 973Minimum Difference Between Largest and Smallest Value in Three MovesMediumArrayGreedySorting
Solve → 974Number of Good PairsEasyArrayHash TableMath
Solve → 975Find the Maximum Sequence Value of ArrayHardArrayDynamic ProgrammingBit Manipulation
Solve → 976Maximum Candies Allocated to K ChildrenMediumArrayBinary Search
Solve → 977Delete Nodes From Linked List Present in ArrayMediumArrayHash TableLinked List
Solve → 978Maximum Frequency of an Element After Performing Operations IIHardArrayBinary SearchSliding Window
Solve → 979Find N Unique Integers Sum up to ZeroEasyArrayMath
Solve → 980Count Non-Decreasing Subarrays After K OperationsHardArrayStackSegment Tree
Solve → 981Fill a Special GridMediumArrayDivide and ConquerMatrix
Solve → 982Pascal's Triangle IIEasyArrayDynamic Programming
Solve → 983Dungeon GameHardArrayDynamic ProgrammingMatrix
Solve → 984Shortest BridgeMediumArrayDepth-First SearchBreadth-First Search
Solve → 985Permutations IIMediumArrayBacktrackingSorting
Solve → 986Predict the WinnerMediumArrayMathDynamic Programming
Solve → 987Continuous Subarray SumMediumArrayHash TableMath
Solve → 988Flipping an ImageEasyArrayTwo PointersBit Manipulation
Solve → 989Maximum Sum Circular SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 990Longest Arithmetic Subsequence of Given DifferenceMediumArrayHash TableDynamic Programming
Solve → 991Count Number of Nice SubarraysMediumArrayHash TableMath
Solve → 992Search Suggestions SystemMediumArrayStringBinary Search
Solve → 993Minimum Interval to Include Each QueryHardArrayBinary SearchSweep Line
Solve → 994Find the Smallest Divisor Given a ThresholdMediumArrayBinary Search
Solve → 995Maximum Sum of 3 Non-Overlapping SubarraysHardArrayDynamic ProgrammingSliding Window
Solve → 996Shortest Unsorted Continuous SubarrayMediumArrayTwo PointersStack
Solve → 997Largest Triangle AreaEasyArrayMathGeometry
Solve → 998Number of Same-End SubstringsMediumArrayHash TableString
Solve → 999Tuple with Same ProductMediumArrayHash TableCounting
Solve → 1000House Robber IVMediumArrayBinary SearchDynamic Programming
Solve → 1001Smallest Range Covering Elements from K ListsHardArrayHash TableGreedy
Solve → 1002Count the Number of Fair PairsMediumArrayTwo PointersBinary Search
Solve → 1003Two Best Non-Overlapping EventsMediumArrayBinary SearchDynamic Programming
Solve → 1004Adjacent Increasing Subarrays Detection IIMediumArrayBinary Search
Solve → 1005Longest Harmonious SubsequenceEasyArrayHash TableSliding Window
Solve → 1006Reschedule Meetings for Maximum Free Time IIMediumArrayGreedyEnumeration
Solve → 1007Sequence ReconstructionMediumArrayGraph TheoryTopological Sort
Solve → 1008Sliding Window MedianHardArrayHash TableSliding Window
Solve → 1009Subarray Product Less Than KMediumArrayBinary SearchSliding Window
Solve → 1010Sort Array By ParityEasyArrayTwo PointersSorting
Solve → 1011Number of Subsequences That Satisfy the Given Sum ConditionMediumArrayTwo PointersBinary Search
Solve → 1012Sender With Largest Word CountMediumArrayHash TableString
Solve → 1013Construct Binary Tree from Inorder and Postorder TraversalMediumArrayHash TableDivide and Conquer
Solve → 1014Word Break IIHardArrayHash TableString
Solve → 1015My Calendar IMediumArrayBinary SearchDesign
Solve → 1016Boats to Save PeopleMediumArrayTwo PointersGreedy
Solve → 1017Minimum Domino Rotations For Equal RowMediumArrayGreedy
Solve → 1018Product of the Last K NumbersMediumArrayMathDesign
Solve → 1019Design Circular QueueMediumArrayLinked ListDesign
Solve → 1020Remove Sub-Folders from the FilesystemMediumArrayStringDepth-First Search
Solve → 1021Duplicate ZerosEasyArrayTwo Pointers
Solve → 1022Maximum Beauty of an Array After Applying OperationMediumArrayBinary SearchSliding Window
Solve → 1023Best Sightseeing PairMediumArrayDynamic Programming
Solve → 1024Longest Nice SubarrayMediumArrayBit ManipulationSliding Window
Solve → 1025Range Sum Query 2D - ImmutableMediumArrayDesignMatrix
Solve → 1026Minimum Pair Removal to Sort Array IEasyArrayHash TableLinked List
Solve → 1027Meeting RoomsEasyArraySorting
Solve → 1028Employee Free TimeHardArraySweep LineSorting
Solve → 1029Bus RoutesHardArrayHash TableBreadth-First Search
Solve → 1030Longest String ChainMediumArrayHash TableTwo Pointers
Solve → 1031Check If N and Its Double ExistEasyArrayHash TableTwo Pointers
Solve → 1032Shuffle the ArrayEasyArray
Solve → 1033Max Number of K-Sum PairsMediumArrayHash TableTwo Pointers
Solve → 1034Find the Highest AltitudeEasyArrayPrefix Sum
Solve → 1035Find Original Array From Doubled ArrayMediumArrayHash TableGreedy
Solve → 1036Check if Word Can Be Placed In CrosswordMediumArrayMatrixEnumeration
Solve → 1037Maximum Number of Ways to Partition an ArrayHardArrayHash TableCounting
Solve → 1038Frog JumpHardArrayDynamic Programming
Solve → 1039Queue Reconstruction by HeightMediumArrayBinary Indexed TreeSegment Tree
Solve → 1040Construct Binary Search Tree from Preorder TraversalMediumArrayStackTree
Solve → 1041Number of EnclavesMediumArrayDepth-First SearchBreadth-First Search
Solve → 1042Find the Difference of Two ArraysEasyArrayHash Table
Solve → 1043How Many Numbers Are Smaller Than the Current NumberEasyArrayHash TableSorting
Solve → 1044Third Maximum NumberEasyArraySorting
Solve → 1045Minimum Cost For TicketsMediumArrayDynamic Programming
Solve → 1046Spiral Matrix IIIMediumArrayMatrixSimulation
Solve → 1047Partition Array According to Given PivotMediumArrayTwo PointersSimulation
Solve → 1048Stone GameMediumArrayMathDynamic Programming
Solve → 1049Create Maximum NumberHardArrayTwo PointersStack
Solve → 1050Max Chunks To Make SortedMediumArrayStackGreedy
Solve → 1051Divide Array Into Arrays With Max DifferenceMediumArrayGreedySorting
Solve → 1052Maximum Employees to Be Invited to a MeetingHardArrayDynamic ProgrammingDepth-First Search
Solve → 1053Find the Maximum Number of Elements in SubsetMediumArrayHash TableEnumeration
Solve → 1054Maximize Subarray GCD ScoreHardArrayMathEnumeration
Solve → 1055Fruits Into Baskets IIEasyArrayBinary SearchSegment Tree
Solve → 1056Find the Town JudgeEasyArrayHash TableGraph Theory
Solve → 1057Find in Mountain ArrayHardArrayBinary SearchInteractive
Solve → 1058Number of Ways to Form a Target String Given a DictionaryHardArrayStringDynamic Programming
Solve → 1059Find a Peak Element IIMediumArrayBinary SearchMatrix
Solve → 1060Maximum Sum of Distinct Subarrays With Length KMediumArrayHash TableSliding Window
Solve → 1061Maximum Number of Points with CostMediumArrayDynamic ProgrammingMatrix
Solve → 1062HeatersMediumArrayTwo PointersBinary Search
Solve → 1063Rabbits in ForestMediumArrayHash TableMath
Solve → 1064Hand of StraightsMediumArrayHash TableGreedy
Solve → 1065Snakes and LaddersMediumArrayBreadth-First SearchMatrix
Solve → 1066Baseball GameEasyArrayStackSimulation
Solve → 1068Reveal Cards In Increasing OrderMediumArrayQueueSorting
Solve → 1069Number of Ways to Split ArrayMediumArrayPrefix Sum
Solve → 1070Word SubsetsMediumArrayHash TableString
Solve → 1071Last Stone WeightEasyArrayHeap (Priority Queue)
Solve → 1072Maximum Score of a Node SequenceHardArrayGraph TheorySorting
Solve → 1073Count Submatrices With All OnesMediumArrayDynamic ProgrammingStack
Solve → 1074Find Minimum in Rotated Sorted Array IIHardArrayBinary Search
Solve → 1075Find the Prefix Common Array of Two ArraysMediumArrayHash TableBit Manipulation
Solve → 1076Shifting Letters IIMediumArrayStringPrefix Sum
Solve → 1077Alternating Groups IIMediumArraySliding Window
Solve → 1078Ant on the BoundaryEasyArraySimulationPrefix Sum
Solve → 1079Number of Equivalent Domino PairsEasyArrayHash TableCounting
Solve → 1080Find Numbers with Even Number of DigitsEasyArrayMath
Solve → 1081Count Good TripletsEasyArrayEnumeration
Solve → 1082Solving Questions With BrainpowerMediumArrayDynamic Programming
Solve → 1083Maximum Erasure ValueMediumArrayHash TableSliding Window
Solve → 1084Find the Minimum Amount of Time to Brew PotionsMediumArraySimulationPrefix Sum
Solve → 1085Kth Smallest Product of Two Sorted ArraysHardArrayBinary Search
Solve → 1086Find the Count of Monotonic Pairs IHardArrayMathDynamic Programming
Solve → 1087Count Cells in Overlapping Horizontal and Vertical SubstringsMediumArrayStringRolling Hash
Solve → 1088Can Make Arithmetic Progression From SequenceEasyArraySorting
Solve → 1089Walls and GatesMediumArrayBreadth-First SearchMatrix
Solve → 1090Shortest Distance from All BuildingsHardArrayBreadth-First SearchMatrix
Solve → 1091Wiggle Sort IIMediumArrayDivide and ConquerGreedy
Solve → 1092Optimal Account BalancingHardArrayDynamic ProgrammingBacktracking
Solve → 1093Bag of TokensMediumArrayTwo PointersGreedy
Solve → 1094Filling Bookcase ShelvesMediumArrayDynamic Programming
Solve → 1095Maximum Number of Events That Can Be Attended IIHardArrayBinary SearchDynamic Programming
Solve → 1096Minimize the Maximum Difference of PairsMediumArrayBinary SearchDynamic Programming
Solve → 1097Car PoolingMediumArraySortingHeap (Priority Queue)
Solve → 1098Find Smallest Letter Greater Than TargetEasyArrayBinary Search
Solve → 1099Number of Ways to Build Sturdy Brick WallMediumArrayDynamic ProgrammingBit Manipulation
Solve → 1100Fair Candy SwapEasyArrayHash TableBinary Search
Solve → 1101Sum of Subarray RangesMediumArrayStackMonotonic Stack
Solve → 1102Defuse the BombEasyArraySliding Window
Solve → 1103Time Needed to Buy TicketsEasyArrayQueueSimulation
Solve → 1104Counting Words With a Given PrefixEasyArrayStringString Matching
Solve → 1105Find All K-Distant Indices in an ArrayEasyArrayTwo Pointers
Solve → 1106Maximum Product of Word LengthsMediumArrayStringBit Manipulation
Solve → 1107Ones and ZeroesMediumArrayStringDynamic Programming
Solve → 1108My Calendar IIMediumArrayBinary SearchDesign
Solve → 1109Expressive WordsMediumArrayTwo PointersString
Solve → 1110Count Servers that CommunicateMediumArrayDepth-First SearchBreadth-First Search
Solve → 1111Rank Teams by VotesMediumArrayHash TableString
Solve → 1112Find the Most Competitive SubsequenceMediumArrayStackGreedy
Solve → 1113Check If Array Pairs Are Divisible by kMediumArrayHash TableCounting
Solve → 1114Finding 3-Digit Even NumbersEasyArrayHash TableRecursion
Solve → 1115Maximum Area Rectangle With Point Constraints IMediumArrayMathBinary Indexed Tree
Solve → 1116Maximum Value of an Ordered Triplet IIMediumArray
Solve → 1117Count Hills and Valleys in an ArrayEasyArray
Solve → 1118Separate Squares IIHardArrayBinary SearchSegment Tree
Solve → 1119Range Product Queries of PowersMediumArrayBit ManipulationPrefix Sum
Solve → 1120Minimum Time to Repair CarsMediumArrayBinary Search
Solve → 1121Minimum Number of Flips to Make Binary Grid Palindromic IIMediumArrayTwo PointersMatrix
Solve → 1122Game of LifeMediumArrayMatrixSimulation
Solve → 1123Kth Smallest Element in a Sorted MatrixMediumArrayBinary SearchSorting
Solve → 1124Delete and EarnMediumArrayHash TableDynamic Programming
Solve → 1125Longest Mountain in ArrayMediumArrayTwo PointersDynamic Programming
Solve → 1126Minimum Number of Refueling StopsHardArrayDynamic ProgrammingGreedy
Solve → 1127Monotonic ArrayEasyArray
Solve → 1128Divide Array in Sets of K Consecutive NumbersMediumArrayHash TableGreedy
Solve → 1129Stone Game IIIHardArrayMathDynamic Programming
Solve → 1130Shuffle StringEasyArrayString
Solve → 1131Matrix Diagonal SumEasyArrayMatrix
Solve → 1132Find Unique Binary StringMediumArrayHash TableString
Solve → 1133Final Value of Variable After Performing OperationsEasyArrayStringSimulation
Solve → 1134Maximum Subsequence ScoreMediumArrayGreedySorting
Solve → 1135Maximum Running Time of N ComputersHardArrayBinary SearchGreedy
Solve → 1136Island PerimeterEasyArrayDepth-First SearchBreadth-First Search
Solve → 1137Keyboard RowEasyArrayHash TableString
Solve → 1138Valid Triangle NumberMediumArrayTwo PointersBinary Search
Solve → 1139Employee ImportanceMediumArrayHash TableTree
Solve → 1140Design HashMapEasyArrayHash TableLinked List
Solve → 1141Path with Maximum ProbabilityMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 1142Number of Students Unable to Eat LunchEasyArrayStackQueue
Solve → 1143XOR Queries of a SubarrayMediumArrayBit ManipulationPrefix Sum
Solve → 1144Final Prices With a Special Discount in a ShopEasyArrayStackMonotonic Stack
Solve → 1145Unique Email AddressesEasyArrayHash TableString
Solve → 1146Sort Array by Increasing FrequencyEasyArrayHash TableSorting
Solve → 1147Find Minimum Time to Reach Last Room IMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 1148Bitwise ORs of SubarraysMediumArrayDynamic ProgrammingBit Manipulation
Solve → 1149Palindrome PairsHardArrayHash TableString
Solve → 1150Find the Maximum Length of Valid Subsequence IMediumArrayDynamic Programming
Solve → 1151Describe the PaintingMediumArrayHash TableSorting
Solve → 1152Merge Two 2D Arrays by Summing ValuesEasyArrayHash TableTwo Pointers
Solve → 1153Construct Binary Tree from Preorder and Postorder TraversalMediumArrayHash TableDivide and Conquer
Solve → 1154Minimum Cost to Merge StonesHardArrayDynamic ProgrammingPrefix Sum
Solve → 1155Longest Arithmetic SubsequenceMediumArrayHash TableBinary Search
Solve → 1156Minimum Operations to Reduce X to ZeroMediumArrayHash TableBinary Search
Solve → 1157Replace Elements with Greatest Element on Right SideEasyArray
Solve → 1158Minimum Moves to Equal Array ElementsMediumArrayMath
Solve → 1159Find the Shortest SuperstringHardArrayStringDynamic Programming
Solve → 1160Maximum Absolute Sum of Any SubarrayMediumArrayDynamic Programming
Solve → 1161Find the Length of the Longest Common PrefixMediumArrayHash TableString
Solve → 1162Minimum Operations to Make Binary Array Elements Equal to One IMediumArrayBit ManipulationQueue
Solve → 1163Lemonade ChangeEasyArrayGreedy
Solve → 1164String Matching in an ArrayEasyArrayStringString Matching
Solve → 1165Minimum Cost Walk in Weighted GraphHardArrayBit ManipulationUnion-Find
Solve → 1166Maximize Subarrays After Removing One Conflicting PairHardArraySegment TreeEnumeration
Solve → 1167Longest Continuous Increasing SubsequenceEasyArray
Solve → 1168Minimum Increments to Equalize Leaf PathsMediumArrayDynamic ProgrammingTree
Solve → 1169Rearranging FruitsHardArrayHash TableGreedy
Solve → 1170Shuffle an ArrayMediumArrayMathDesign
Solve → 1171Construct Quad TreeMediumArrayDivide and ConquerTree
Solve → 1172Maximize Distance to Closest PersonMediumArray
Solve → 1173RLE IteratorMediumArrayDesignCounting
Solve → 1174Minimum Number of K Consecutive Bit FlipsHardArrayBit ManipulationQueue
Solve → 1175Number of Submatrices That Sum to TargetHardArrayHash TableMatrix
Solve → 1176Minimum Number of Taps to Open to Water a GardenHardArrayDynamic ProgrammingGreedy
Solve → 1177Last Day Where You Can Still CrossHardArrayBinary SearchDepth-First Search
Solve → 1178Longest Increasing Subsequence IIHardArrayDivide and ConquerDynamic Programming
Solve → 1179Single Number IIIMediumArrayBit Manipulation
Solve → 1180Battleships in a BoardMediumArrayDepth-First SearchMatrix
Solve → 1181Relative RanksEasyArraySortingHeap (Priority Queue)
Solve → 1182K-diff Pairs in an ArrayMediumArrayHash TableTwo Pointers
Solve → 1183Unique Paths IIIHardArrayBacktrackingBit Manipulation
Solve → 1184Relative Sort ArrayEasyArrayHash TableSorting
Solve → 1185Maximum Profit in Job SchedulingHardArrayBinary SearchDynamic Programming
Solve → 1186Minimum Cost to Cut a StickHardArrayDynamic ProgrammingSorting
Solve → 1187Magnetic Force Between Two BallsMediumArrayBinary SearchSorting
Solve → 1188Furthest Building You Can ReachMediumArrayGreedyHeap (Priority Queue)
Solve → 1189Find Common CharactersEasyArrayHash TableString
Solve → 1190Minimum Time to Visit a Cell In a GridHardArrayBreadth-First SearchGraph Theory
Solve → 1191The Number of the Smallest Unoccupied ChairMediumArrayHash TableHeap (Priority Queue)
Solve → 1192Minimum Limit of Balls in a BagMediumArrayBinary Search
Solve → 1193Take Gifts From the Richest PileEasyArrayHeap (Priority Queue)Simulation
Solve → 1194Partition to K Equal Sum SubsetsMediumArrayDynamic ProgrammingBacktracking
Solve → 1195Convert 1D Array Into 2D ArrayEasyArrayMatrixSimulation
Solve → 1196Largest Number At Least Twice of OthersEasyArraySorting
Solve → 1197X of a Kind in a Deck of CardsEasyArrayHash TableMath
Solve → 1198Delete Columns to Make Sorted IIMediumArrayStringGreedy
Solve → 1199Find the Number of Ways to Place People IMediumArrayMathGeometry
Solve → 1200Evaluate the Bracket Pairs of a StringMediumArrayHash TableString
Solve → 1201Maximum Ascending Subarray SumEasyArray
Solve → 1202Maximum Product of Three NumbersEasyArrayMathSorting
Solve → 1203Corporate Flight BookingsMediumArrayPrefix Sum
Solve → 1204Maximum Average Pass RatioMediumArrayGreedyHeap (Priority Queue)
Solve → 1205Meeting SchedulerMediumArrayTwo PointersSorting
Solve → 1206Count the Number of Good SubarraysMediumArrayHash TableSliding Window
Solve → 1207Count Number of Maximum Bitwise-OR SubsetsMediumArrayBacktrackingBit Manipulation
Solve → 1208Shortest Subarray to be Removed to Make Array SortedMediumArrayTwo PointersBinary Search
Solve → 1209Apply Operations to an ArrayEasyArrayTwo PointersSimulation
Solve → 1210Combination Sum IIIMediumArrayBacktracking
Solve → 1211First Completely Painted Row or ColumnMediumArrayHash TableMatrix
Solve → 1212Smallest String With SwapsMediumArrayHash TableString
Solve → 1213Construct the Lexicographically Largest Valid SequenceMediumArrayBacktracking
Solve → 1214Smallest Subarrays With Maximum Bitwise ORMediumArrayBinary SearchBit Manipulation
Solve → 1215Insert Delete GetRandom O(1) - Duplicates allowedHardArrayHash TableMath
Solve → 1216Count the Number of Square-Free SubsetsMediumArrayMathDynamic Programming
Solve → 1217Paint House IIIHardArrayDynamic Programming
Solve → 1218Best Time to Buy and Sell Stock VMediumArrayDynamic Programming
Solve → 1219Find the Minimum Area to Cover All Ones IMediumArrayMatrix
Solve → 1220Minimum Number of Operations to Make All Array Elements Equal to 1MediumArrayMathNumber Theory
Solve → 1221UTF-8 ValidationMediumArrayBit Manipulation
Solve → 1222IPOHardArrayGreedySorting
Solve → 1223Number of Longest Increasing SubsequenceMediumArrayDynamic ProgrammingBinary Indexed Tree
Solve → 1224Maximum Length of Repeated SubarrayMediumArrayBinary SearchDynamic Programming
Solve → 1225Toeplitz MatrixEasyArrayMatrix
Solve → 1226Design HashSetEasyArrayHash TableLinked List
Solve → 1227Partition Array for Maximum SumMediumArrayDynamic Programming
Solve → 1228Arithmetic SubarraysMediumArrayHash TableSorting
Solve → 1229Maximum XOR With an Element From ArrayHardArrayBit ManipulationTrie
Solve → 1230Maximum Population YearEasyArrayCountingPrefix Sum
Solve → 1231Maximum Difference Between Increasing ElementsEasyArray
Solve → 1232Find Target Indices After Sorting ArrayEasyArrayBinary SearchSorting
Solve → 1233Longest Palindrome by Concatenating Two Letter WordsMediumArrayHash TableString
Solve → 1234Find Closest Number to ZeroEasyArray
Solve → 1235Count Subarrays With Fixed BoundsHardArrayQueueSliding Window
Solve → 1236Painting the WallsHardArrayDynamic Programming
Solve → 1237Number of Flowers in Full BloomHardArrayHash TableBinary Search
Solve → 1238Open the LockMediumArrayHash TableString
Solve → 1239Design Browser HistoryMediumArrayLinked ListStack
Solve → 1240Count Number of TeamsMediumArrayDynamic ProgrammingBinary Indexed Tree
Solve → 1241Special Array With X Elements Greater Than or Equal XEasyArrayBinary SearchSorting
Solve → 1242Minimum Obstacle Removal to Reach CornerHardArrayBreadth-First SearchGraph Theory
Solve → 1243Design Circular DequeMediumArrayLinked ListDesign
Solve → 1244Make Sum Divisible by PMediumArrayHash TablePrefix Sum
Solve → 1245Largest Local Values in a MatrixEasyArrayMatrix
Solve → 1246Sum of All Subset XOR TotalsEasyArrayMathBacktracking
Solve → 1247Beautiful ArrayMediumArrayMathDivide and Conquer
Solve → 1248Sort Array By Parity IIEasyArrayTwo PointersSorting
Solve → 1249Largest Component Size by Common FactorHardArrayHash TableMath
Solve → 1250Find the Maximum Length of Valid Subsequence IIMediumArrayDynamic Programming
Solve → 1251Bitwise XOR of All PairingsMediumArrayBit ManipulationBrainteaser
Solve → 1252Build a Matrix With ConditionsHardArrayGraph TheoryTopological Sort
Solve → 1253Equal Row and Column PairsMediumArrayHash TableMatrix
Solve → 1254Wiggle SortMediumArrayGreedySorting
Solve → 1255Sort Transformed ArrayMediumArrayMathTwo Pointers
Solve → 1256Number of Zero-Filled SubarraysMediumArrayMath
Solve → 1257Longest Word in Dictionary through DeletingMediumArrayTwo PointersString
Solve → 1258Magic Squares In GridMediumArrayHash TableMath
Solve → 1259Delete Columns to Make SortedEasyArrayString
Solve → 1260Matrix Block SumMediumArrayMatrixPrefix Sum
Solve → 1261Rank Transform of a MatrixHardArrayUnion-FindGraph Theory
Solve → 1262Watering PlantsMediumArraySimulation
Solve → 1263Grid GameMediumArrayMatrixPrefix Sum
Solve → 1264Maximum Distance in ArraysMediumArrayGreedy
Solve → 1265Number of Sub-arrays With Odd SumMediumArrayMathDynamic Programming
Solve → 1266Adding Spaces to a StringMediumArrayTwo PointersString
Solve → 1267Count Negative Numbers in a Sorted MatrixEasyArrayBinary SearchMatrix
Solve → 1268Maximum Matrix SumMediumArrayGreedyMatrix
Solve → 1269Maximum GapMediumArraySortingBucket Sort
Solve → 1270Shortest Distance to a CharacterEasyArrayTwo PointersString
Solve → 1271Max Sum of a Pair With Equal Sum of DigitsMediumArrayHash TableSorting
Solve → 1272Identify the Largest Outlier in an ArrayMediumArrayHash TableCounting
Solve → 1273Minimum Absolute DifferenceEasyArraySorting
Solve → 1274N-Repeated Element in Size 2N ArrayEasyArrayHash Table
Solve → 1275Largest Perimeter TriangleEasyArrayMathGreedy
Solve → 1276Find the Number of Distinct Colors Among the BallsMediumArrayHash TableSimulation
Solve → 1277Design Excel Sum FormulaHardArrayHash TableString
Solve → 1278Simple Bank SystemMediumArrayHash TableDesign
Solve → 1279The Two Sneaky Numbers of DigitvilleEasyArrayHash TableMath
Solve → 1280Find the Minimum Cost Array PermutationHardArrayDynamic ProgrammingBit Manipulation
Solve → 1281Last Stone Weight IIMediumArrayDynamic Programming
Solve → 1282Minimum Equal Sum of Two Arrays After Replacing ZerosMediumArrayGreedy
Solve → 1283Count Equal and Divisible Pairs in an ArrayEasyArray
Solve → 1284Maximum Subarray Sum With Length Divisible by KMediumArrayHash TablePrefix Sum
Solve → 1285Set Intersection Size At Least TwoHardArrayGreedySorting
Solve → 1286Subdomain Visit CountMediumArrayHash TableString
Solve → 1287Count Covered BuildingsMediumArrayHash TableSorting
Solve → 1288Maximum Students Taking ExamHardArrayDynamic ProgrammingBit Manipulation
Solve → 1289Find Subsequence of Length K With the Largest SumEasyArrayHash TableSorting
Solve → 1290Find Lucky Integer in an ArrayEasyArrayHash TableCounting
Solve → 1291Divide an Array Into Subarrays With Minimum Cost IEasyArraySortingEnumeration
Solve → 1292Count of Range SumHardArrayBinary SearchDivide and Conquer
Solve → 1293Minimum Number of Arrows to Burst BalloonsMediumArrayGreedySorting
Solve → 12944Sum IIMediumArrayHash Table
Solve → 1295The MazeMediumArrayDepth-First SearchBreadth-First Search
Solve → 1296Teemo AttackingEasyArraySimulation
Solve → 1297Find K-th Smallest Pair DistanceHardArrayTwo PointersBinary Search
Solve → 1298Cherry PickupHardArrayDynamic ProgrammingMatrix
Solve → 1299Most Common WordEasyArrayHash TableString
Solve → 1300Similar String GroupsHardArrayHash TableString
Solve → 1301Valid Mountain ArrayEasyArray
Solve → 1302Validate Stack SequencesMediumArrayStackSimulation
Solve → 1303Stream of CharactersHardArrayStringDesign
Solve → 1304Decompress Run-Length Encoded ListEasyArray
Solve → 1305Build an Array With Stack OperationsMediumArrayStackSimulation
Solve → 1306Min Cost to Connect All PointsMediumArrayUnion-FindGraph Theory
Solve → 1307Maximum Score of a Good SubarrayHardArrayTwo PointersBinary Search
Solve → 1308Find the Winner of the Circular GameMediumArrayMathRecursion
Solve → 1309Parallel Courses IIIHardArrayDynamic ProgrammingGraph Theory
Solve → 1310Minimized Maximum of Products Distributed to Any StoreMediumArrayBinary SearchGreedy
Solve → 1311Escape the Spreading FireHardArrayBinary SearchBreadth-First Search
Solve → 1312Minimum Replacements to Sort the ArrayHardArrayMathGreedy
Solve → 1313Number of Good PathsHardArrayHash TableTree
Solve → 1314Paths in Matrix Whose Sum Is Divisible by KHardArrayDynamic ProgrammingMatrix
Solve → 1315Contains Duplicate IIIHardArraySliding WindowSorting
Solve → 1316Patching ArrayHardArrayGreedy
Solve → 1317Path with Maximum GoldMediumArrayBacktrackingMatrix
Solve → 1318Cherry Pickup IIHardArrayDynamic ProgrammingMatrix
Solve → 1319Special Positions in a Binary MatrixEasyArrayMatrix
Solve → 1320Avoid Flood in The CityMediumArrayHash TableBinary Search
Solve → 1321Number of Senior CitizensEasyArrayString
Solve → 1322Non-decreasing ArrayMediumArray
Solve → 1323Three Consecutive OddsEasyArray
Solve → 1324Maximum Number of Words Found in SentencesEasyArrayString
Solve → 1325Range Sum Query 2D - MutableMediumArrayDesignBinary Indexed Tree
Solve → 1326Count the Number of Consistent StringsEasyArrayHash TableString
Solve → 1327Jump Game VIMediumArrayDynamic ProgrammingQueue
Solve → 1328Sentence Similarity IIIMediumArrayTwo PointersString
Solve → 1329Car Fleet IIHardArrayMathStack
Solve → 1330Stone Game IIMediumArrayMathDynamic Programming
Solve → 1331Next Greater Node In Linked ListMediumArrayLinked ListStack
Solve → 1332Array PartitionEasyArrayGreedySorting
Solve → 1333Checking Existence of Edge Length Limited PathsHardArrayTwo PointersUnion-Find
Solve → 1334Range Sum of Sorted Subarray SumsMediumArrayTwo PointersBinary Search
Solve → 1335Count Subarrays With Score Less Than KHardArrayBinary SearchSliding Window
Solve → 1336Perfect RectangleHardArrayHash TableMath
Solve → 1337Count Number of Distinct Integers After Reverse OperationsMediumArrayHash TableMath
Solve → 1338Words Within Two Edits of DictionaryMediumArrayStringTrie
Solve → 1339Closest Nodes Queries in a Binary Search TreeMediumArrayBinary SearchTree
Solve → 1340Disconnect Path in a Binary Matrix by at Most One FlipMediumArrayDynamic ProgrammingDepth-First Search
Solve → 1341Check if There is a Path With Equal Number of 0's And 1'sMediumArrayDynamic ProgrammingMatrix
Solve → 1342Prime Subtraction OperationMediumArrayMathBinary Search
Solve → 1343Sentence Similarity IIMediumArrayHash TableString
Solve → 1344Random Point in Non-overlapping RectanglesMediumArrayMathBinary Search
Solve → 1345Online ElectionMediumArrayHash TableBinary Search
Solve → 1346Campus BikesMediumArraySortingHeap (Priority Queue)
Solve → 1347Remove IntervalMediumArray
Solve → 1348Number of Ways of Cutting a PizzaHardArrayDynamic ProgrammingMemoization
Solve → 1349Map of Highest PeakMediumArrayBreadth-First SearchMatrix
Solve → 1350Minimum Number of Removals to Make Mountain ArrayHardArrayBinary SearchDynamic Programming
Solve → 1351Count of Interesting SubarraysMediumArrayHash TablePrefix Sum
Solve → 1352Longest Strictly Increasing or Strictly Decreasing SubarrayEasyArray
Solve → 1353Longest Subarray With Maximum Bitwise ANDMediumArrayBit ManipulationBrainteaser
Solve → 1354Maximum Height by Stacking CuboidsHardArrayDynamic ProgrammingSorting
Solve → 1355Reach End of Array With Max ScoreMediumArrayGreedy
Solve → 1356Find the Student that Will Replace the ChalkMediumArrayBinary SearchSimulation
Solve → 1357Sort the PeopleEasyArrayHash TableString
Solve → 1358Extra Characters in a StringMediumArrayHash TableString
Solve → 1359Taking Maximum Energy From the Mystic DungeonMediumArrayDynamic ProgrammingPrefix Sum
Solve → 1360Remove BoxesHardArrayDynamic ProgrammingMemoization
Solve → 1361Check if DFS Strings Are PalindromesHardArrayHash TableString
Solve → 1362Flip Columns For Maximum Number of Equal RowsMediumArrayHash TableMatrix
Solve → 1363Rotating the BoxMediumArrayTwo PointersMatrix
Solve → 1364Count Unguarded Cells in the GridMediumArrayMatrixSimulation
Solve → 1365Length of Longest Fibonacci SubsequenceMediumArrayHash TableDynamic Programming
Solve → 1366Minimum Value to Get Positive Step by Step SumEasyArrayPrefix Sum
Solve → 1367Minimum Moves to Equal Array Elements IIMediumArrayMathSorting
Solve → 1368Maximize Subarray Sum After Removing All Occurrences of One ElementHardArrayHash TableDivide and Conquer
Solve → 1369Finding Pairs With a Certain SumMediumArrayHash TableDesign
Solve → 1370Maximum Unique Subarray Sum After DeletionEasyArrayHash TableGreedy
Solve → 1371Maximum Frequency After Subarray OperationMediumArrayHash TableDynamic Programming
Solve → 1372Maximum Fruits Harvested After at Most K StepsHardArrayBinary SearchSliding Window
Solve → 1373Maximum Units on a TruckEasyArrayGreedySorting
Solve → 1374Apply Operations to Maximize ScoreHardArrayMathStack
Solve → 1375Minimum Cost Tree From Leaf ValuesMediumArrayDynamic ProgrammingStack
Solve → 1376Count Good Triplets in an ArrayHardArrayBinary SearchDivide and Conquer
Solve → 1377Put Marbles in BagsHardArrayGreedySorting
Solve → 1378Minimum Operations to Make Array Values Equal to KEasyArrayHash Table
Solve → 1379Count Complete Subarrays in an ArrayMediumArrayHash TableSliding Window
Solve → 1380Find Words Containing CharacterEasyArrayString
Solve → 1381Get the Maximum ScoreHardArrayTwo PointersDynamic Programming
Solve → 1382Maximize the Minimum Powered CityHardArrayBinary SearchGreedy
Solve → 1383Degree of an ArrayEasyArrayHash Table
Solve → 1384Count Partitions With Max-Min Difference at Most KMediumArrayDynamic ProgrammingQueue
Solve → 1385Fruits Into Baskets IIIMediumArrayBinary SearchSegment Tree
Solve → 1386Left and Right Sum DifferencesEasyArrayPrefix Sum
Solve → 1387Minimum Operations to Make Array Elements ZeroHardArrayMathBit Manipulation
Solve → 1388Power Grid MaintenanceMediumArrayHash TableDepth-First Search
Solve → 1389Longest Balanced Subarray IIHardArrayHash TableDivide and Conquer
Solve → 1390Find Resultant Array After Removing AnagramsEasyArrayHash TableString
Solve → 1391Keep Multiplying Found Values by TwoEasyArrayHash TableSorting
Solve → 1392Minimum Operations to Convert All Elements to ZeroMediumArrayHash TableStack
Solve → 1393Check If All 1's Are at Least Length K Places AwayEasyArray
Solve → 1394Greatest Sum Divisible by ThreeMediumArrayDynamic ProgrammingGreedy
Solve → 1395Read N Characters Given read4 II - Call Multiple TimesHardArraySimulationInteractive
Solve → 1396Design Snake GameMediumArrayHash TableDesign
Solve → 1397Arithmetic SlicesMediumArrayDynamic ProgrammingSliding Window
Solve → 1398Arithmetic Slices II - SubsequenceHardArrayDynamic Programming
Solve → 1399MinesweeperMediumArrayDepth-First SearchBreadth-First Search
Solve → 1400Design Compressed String IteratorEasyArrayStringDesign
Solve → 1401Minimum Cost to Hire K WorkersHardArrayGreedySorting
Solve → 1402Video StitchingMediumArrayDynamic ProgrammingGreedy
Solve → 1403Constrained Subsequence SumHardArrayDynamic ProgrammingQueue
Solve → 1404Minimum Time Visiting All PointsEasyArrayMathGeometry
Solve → 1405Jump Game IVHardArrayHash TableBreadth-First Search
Solve → 1406Eliminate Maximum Number of MonstersMediumArrayGreedySorting
Solve → 1407Find Greatest Common Divisor of ArrayEasyArrayMathNumber Theory
Solve → 1408Minimum Number of Operations to Make Array ContinuousHardArrayHash TableBinary Search
Solve → 1409The Number of Weak Characters in the GameMediumArrayStackGreedy
Solve → 1410Minimum Consecutive Cards to Pick UpMediumArrayHash TableSliding Window
Solve → 1411Sentence Screen FittingMediumArrayStringDynamic Programming
Solve → 1412Most Profit Assigning WorkMediumArrayTwo PointersBinary Search
Solve → 1413Shortest Path to Get All KeysHardArrayBit ManipulationBreadth-First Search
Solve → 1414Satisfiability of Equality EquationsMediumArrayStringUnion-Find
Solve → 1415Nearest Exit from Entrance in MazeMediumArrayBreadth-First SearchMatrix
Solve → 1416DI String MatchEasyArrayTwo PointersString
Solve → 14173Sum SmallerMediumArrayTwo PointersBinary Search
Solve → 1418Count Pairs Whose Sum is Less than TargetEasyArrayTwo PointersBinary Search
Solve → 1419Count Number of Pairs With Absolute Difference KEasyArrayHash TableCounting
Solve → 1420Image OverlapMediumArrayMatrix
Solve → 1421Longest Uncommon Subsequence IIMediumArrayHash TableTwo Pointers
Solve → 1422Design a Food Rating SystemMediumArrayHash TableString
Solve → 1423Smallest Rectangle Enclosing Black PixelsHardArrayBinary SearchDepth-First Search
Solve → 1424Minimum Total Distance TraveledHardArrayDynamic ProgrammingSorting
Solve → 1425Count Elements With Maximum FrequencyEasyArrayHash TableCounting
Solve → 1426Determine if Two Events Have ConflictEasyArrayString
Solve → 1427Most Frequent Number Following Key In an ArrayEasyArrayHash TableCounting
Solve → 1428Line ReflectionMediumArrayHash TableMath
Solve → 1429Max Sum of Rectangle No Larger Than KHardArrayBinary SearchMatrix
Solve → 1430Sum of Prefix Scores of StringsHardArrayStringTrie
Solve → 1431Number of BoomerangsMediumArrayHash TableMath
Solve → 1432Max Consecutive Ones IIMediumArrayDynamic ProgrammingSliding Window
Solve → 1433Frog Jump IIMediumArrayBinary SearchGreedy
Solve → 1434Sentence SimilarityEasyArrayHash TableString
Solve → 1435Max Chunks To Make Sorted IIHardArrayStackGreedy
Solve → 1436Search in a Sorted Array of Unknown SizeMediumArrayBinary SearchInteractive
Solve → 1437Minimize Max Distance to Gas StationHardArrayBinary Search
Solve → 1438Escape The GhostsMediumArrayMath
Solve → 1439Linked List ComponentsMediumArrayHash TableLinked List
Solve → 1440Delete Columns to Make Sorted IIIHardArrayStringDynamic Programming
Solve → 1441Valid BoomerangEasyArrayMathGeometry
Solve → 1442Minimum Falling Path Sum IIHardArrayDynamic ProgrammingMatrix
Solve → 1443Sum of Mutated Array Closest to TargetMediumArrayBinary SearchSorting
Solve → 1444Maximum Side Length of a Square with Sum Less than or Equal to ThresholdMediumArrayBinary SearchMatrix
Solve → 1445Pizza With 3n SlicesHardArrayDynamic ProgrammingGreedy
Solve → 1446Max Value of EquationHardArrayQueueSliding Window
Solve → 1447Minimum Adjacent Swaps for K Consecutive OnesHardArrayGreedySliding Window
Solve → 1448Queries on Number of Points Inside a CircleMediumArrayMathGeometry
Solve → 1449Cutting RibbonsMediumArrayBinary Search
Solve → 1450Determine Whether Matrix Can Be Obtained By RotationEasyArrayMatrix
Solve → 1451Find Minimum Operations to Make All Elements Divisible by ThreeEasyArrayMath
Solve → 1452Count Sub IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 1453Shortest Distance After Road Addition Queries IMediumArrayBreadth-First SearchGraph Theory
Solve → 1454Two Furthest Houses With Different ColorsEasyArrayGreedy
Solve → 1455Number of Distinct IslandsMediumArrayHash TableDepth-First Search
Solve → 1456Find Winner on a Tic Tac Toe GameEasyArrayHash TableMatrix
Solve → 1457Find a Safe Walk Through a GridMediumArrayBreadth-First SearchGraph Theory
Solve → 1458Maximum Sum of Subsequence With Non-adjacent ElementsHardArrayDivide and ConquerDynamic Programming
Solve → 1459Divide Intervals Into Minimum Number of GroupsMediumArrayTwo PointersGreedy
Solve → 1460Largest Combination With Bitwise AND Greater Than ZeroMediumArrayHash TableBit Manipulation
Solve → 1461Shortest Subarray With OR at Least K IIMediumArrayBit ManipulationSliding Window
Solve → 1462Minimum Score Triangulation of PolygonMediumArrayDynamic Programming
Solve → 1463Delete Duplicate Folders in SystemHardArrayHash TableString
Solve → 1464Best Meeting PointHardArrayMathSorting
Solve → 1465Most Beautiful Item for Each QueryMediumArrayBinary SearchSorting
Solve → 1466Find the Power of K-Size Subarrays IMediumArraySliding Window
Solve → 1467Maximum Coins From K Consecutive BagsMediumArrayBinary SearchGreedy
Solve → 1468Minimum Time to Complete TripsMediumArrayBinary Search
Solve → 1469Find Score of an Array After Marking All ElementsMediumArrayHash TableSorting
Solve → 1470Detect Cycles in 2D GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 1471Maximum Product of Two Elements in an ArrayEasyArraySortingHeap (Priority Queue)
Solve → 1472Analyze User Website Visit PatternMediumArrayHash TableString
Solve → 1473Minimum Operations to Make the Array IncreasingEasyArrayGreedy
Solve → 1474Maximum Number of Points From Grid QueriesHardArrayTwo PointersBreadth-First Search
Solve → 1475Process Tasks Using ServersMediumArrayHeap (Priority Queue)
Solve → 1476Maximum Number of Visible PointsHardArrayMathGeometry
Solve → 1477Minimum Index of a Valid SplitMediumArrayHash TableSorting
Solve → 1478Replace Non-Coprime Numbers in ArrayHardArrayMathStack
Solve → 1479Count Subarrays Where Max Element Appears at Least K TimesMediumArraySliding Window
Solve → 1480Maximum Value of an Ordered Triplet IEasyArray
Solve → 1481Successful Pairs of Spells and PotionsMediumArrayTwo PointersBinary Search
Solve → 1482Count the Hidden SequencesMediumArrayPrefix Sum
Solve → 1483Available Captures for RookEasyArrayMatrixSimulation
Solve → 1484Find Weighted Median Node in TreeHardArrayBinary SearchDynamic Programming
Solve → 1485Maximum Difference Between Adjacent Elements in a Circular ArrayEasyArray
Solve → 1486Minimum Swaps to Sort by Digit SumMediumArrayHash TableSorting
Solve → 14871-bit and 2-bit CharactersEasyArray
Solve → 1488Rotate FunctionMediumArrayMathDynamic Programming
Solve → 1489Count the Number of Computer Unlocking PermutationsMediumArrayMathBrainteaser
Solve → 1490Number of Squareful ArraysHardArrayHash TableMath
Solve → 1491Matchsticks to SquareMediumArrayDynamic ProgrammingBacktracking
Solve → 1492Four DivisorsMediumArrayMath
Solve → 1493Add to Array-Form of IntegerEasyArrayMath
Solve → 1494Sort Matrix by DiagonalsMediumArraySortingMatrix
Solve → 1495Maximum Subarray With Equal ProductsEasyArrayMathSliding Window
Solve → 1496Minimum Number of People to TeachMediumArrayHash TableGreedy
Solve → 1497Minimum Operations to Make Array Sum Divisible by KEasyArrayMath
Solve → 1498Vowel SpellcheckerMediumArrayHash TableString
Solve → 1499Maximum Total Damage With Spell CastingMediumArrayHash TableTwo Pointers
Solve → 1500Find X-Sum of All K-Long Subarrays IIHardArrayHash TableSliding Window
Solve → 1501Make Array Elements Equal to ZeroEasyArraySimulationPrefix Sum
Solve → 1502Longest Non-Decreasing Subarray After Replacing at Most One ElementMediumArrayDynamic Programming
Solve → 1503Number of Smooth Descent Periods of a StockMediumArrayMathTwo Pointers
Solve → 1504Apple Redistribution into BoxesEasyArrayGreedySorting
Solve → 1505Read N Characters Given Read4EasyArraySimulationInteractive
Solve → 1506Strobogrammatic Number IIMediumArrayStringRecursion
Solve → 1507Brick WallMediumArrayHash Table
Solve → 1508Score After Flipping MatrixMediumArrayGreedyBit Manipulation
Solve → 1509Minimum Increment to Make Array UniqueMediumArrayGreedySorting
Solve → 1510Element Appearing More Than 25% In Sorted ArrayEasyArray
Solve → 1511The K Weakest Rows in a MatrixEasyArrayBinary SearchSorting
Solve → 1512Number of Ways to Reorder Array to Get Same BSTHardArrayMathDivide and Conquer
Solve → 1513Check If Two String Arrays are EquivalentEasyArrayString
Solve → 1514Largest Submatrix With RearrangementsMediumArrayGreedySorting
Solve → 1515Count Fertile Pyramids in a LandHardArrayDynamic ProgrammingMatrix
Solve → 1516Maximum AND Sum of ArrayHardArrayDynamic ProgrammingBit Manipulation
Solve → 1517Most Frequent Even ElementEasyArrayHash TableCounting
Solve → 1518Maximum Length of Semi-Decreasing SubarraysMediumArrayStackSorting
Solve → 1519Erect the FenceHardArrayMathGeometry
Solve → 1520Maximum Performance of a TeamHardArrayGreedySorting
Solve → 1521Design Most Recently Used QueueMediumArrayLinked ListDivide and Conquer
Solve → 1522Find the Maximum Sum of Node ValuesHardArrayDynamic ProgrammingGreedy
Solve → 1523Rectangle Area IIHardArraySegment TreeSweep Line
Solve → 1524Maximum Value of K Coins From PilesHardArrayDynamic ProgrammingPrefix Sum
Solve → 1525Check if the Rectangle Corner Is ReachableHardArrayMathDepth-First Search
Solve → 1526Find Valid Matrix Given Row and Column SumsMediumArrayGreedyMatrix
Solve → 1527Minimum Difference Between Highest and Lowest of K ScoresEasyArraySliding WindowSorting
Solve → 1528Height CheckerEasyArraySortingCounting Sort
Solve → 1529Subrectangle QueriesMediumArrayDesignMatrix
Solve → 1530Beautiful ArrangementMediumArrayDynamic ProgrammingBacktracking
Solve → 1531Maximum Score Words Formed by LettersHardArrayHash TableString
Solve → 1532Design Phone DirectoryMediumArrayHash TableLinked List
Solve → 1533Dot Product of Two Sparse VectorsMediumArrayHash TableTwo Pointers
Solve → 1534Minimum Cost to Convert String IMediumArrayStringGraph Theory
Solve → 1535Zigzag IteratorMediumArrayDesignQueue
Solve → 1536Kth Smallest Subarray SumMediumArrayBinary SearchSliding Window
Solve → 1537Operations on TreeMediumArrayHash TableTree
Solve → 1538Binary Searchable Numbers in an Unsorted ArrayMediumArrayBinary SearchStack
Solve → 1539Minimum Operations to Convert NumberMediumArrayBreadth-First Search
Solve → 1540Destroying AsteroidsMediumArrayGreedySorting
Solve → 1541Find All Lonely Numbers in the ArrayMediumArrayHash TableCounting
Solve → 1542Flatten 2D VectorMediumArrayTwo PointersDesign
Solve → 1543Peeking IteratorMediumArrayDesignIterator
Solve → 1544Count Prefixes of a Given StringEasyArrayString
Solve → 1545Design Tic-Tac-ToeMediumArrayHash TableDesign
Solve → 1546Range AdditionMediumArrayPrefix Sum
Solve → 1547Merge Similar ItemsEasyArrayHash TableSorting
Solve → 1548Finding the Number of Visible MountainsMediumArrayStackSorting
Solve → 1549The Maze IIMediumArrayDepth-First SearchBreadth-First Search
Solve → 1550Word AbbreviationHardArrayStringGreedy
Solve → 1551Longest Line of Consecutive One in MatrixMediumArrayDynamic ProgrammingMatrix
Solve → 1552Increment Submatrices by OneMediumArrayMatrixPrefix Sum
Solve → 1553Add Bold Tag in StringMediumArrayHash TableString
Solve → 1554Split Array into Consecutive SubsequencesMediumArrayHash TableGreedy
Solve → 1555K Empty SlotsHardArrayBinary Indexed TreeSegment Tree
Solve → 1556Shortest Completing WordEasyArrayHash TableString
Solve → 1557Sum of Imbalance Numbers of All SubarraysHardArrayHash TableEnumeration
Solve → 1558Bricks Falling When HitHardArrayUnion-FindMatrix
Solve → 1559Largest Sum of AveragesMediumArrayDynamic ProgrammingPrefix Sum
Solve → 1560Minimum Cost to Connect SticksMediumArrayGreedyHeap (Priority Queue)
Solve → 1561Divide ChocolateHardArrayBinary Search
Solve → 1562Mean of Array After Removing Some ElementsEasyArraySorting
Solve → 1563Decrease Elements To Make Array ZigzagMediumArrayGreedy
Solve → 1564Find the Largest Area of Square Inside Two RectanglesMediumArrayMathGeometry
Solve → 1565Where Will the Ball FallMediumArrayMatrixSimulation
Solve → 1566Longest Common Suffix QueriesHardArrayStringTrie
Solve → 1567Sum of Digit Differences of All PairsMediumArrayHash TableMath
Solve → 1568Find Two Non-overlapping Sub-arrays Each With Target SumMediumArrayHash TableBinary Search
Solve → 1569Last Moment Before All Ants Fall Out of a PlankMediumArrayBrainteaserSimulation
Solve → 1570Maximum Non Negative Product in a MatrixMediumArrayDynamic ProgrammingMatrix
Solve → 1571Minimum Cost to Connect Two Groups of PointsHardArrayDynamic ProgrammingBit Manipulation
Solve → 1572Cat and Mouse IIHardArrayMathDynamic Programming
Solve → 1573Distribute Repeating IntegersHardArrayHash TableDynamic Programming
Solve → 1574Minimum Operations to Make a SubsequenceHardArrayHash TableBinary Search
Solve → 1575Minimize Hamming Distance After Swap OperationsMediumArrayDepth-First SearchUnion-Find
Solve → 1576Find Kth Largest XOR Coordinate ValueMediumArrayDivide and ConquerBit Manipulation
Solve → 1577Maximum Score from Performing Multiplication OperationsHardArrayDynamic Programming
Solve → 1578Maximum Number of Groups Getting Fresh DonutsHardArrayDynamic ProgrammingBit Manipulation
Solve → 1579Minimum Path Cost in a Hidden GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 1580Merge Triplets to Form Target TripletMediumArrayGreedy
Solve → 1581Maximum Number of Fish in a GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 1582Find Good Days to Rob the BankMediumArrayDynamic ProgrammingPrefix Sum
Solve → 1583Spiral Matrix IVMediumArrayLinked ListMatrix
Solve → 1584Find Right IntervalMediumArrayBinary SearchSorting
Solve → 1585Restore the Array From Adjacent PairsMediumArrayHash TableDepth-First Search
Solve → 1586Remove CommentsMediumArrayString
Solve → 1587Pairs of Songs With Total Durations Divisible by 60MediumArrayHash TableCounting
Solve → 1588Maximum Subarray Sum with One DeletionMediumArrayDynamic Programming
Solve → 1589Chalkboard XOR GameHardArrayMathBit Manipulation
Solve → 1590Make Array Non-decreasing or Non-increasingHardArrayDynamic ProgrammingGreedy
Solve → 1591Find the Distance Value Between Two ArraysEasyArrayTwo PointersBinary Search
Solve → 1592Sort Integers by The Number of 1 BitsEasyArrayBit ManipulationSorting
Solve → 1593Sliding PuzzleHardArrayDynamic ProgrammingBacktracking
Solve → 1594Create Target Array in the Given OrderEasyArraySimulation
Solve → 1595Maximum Number of Moves in a GridMediumArrayDynamic ProgrammingMatrix
Solve → 1596Jump Game VHardArrayDynamic ProgrammingSorting
Solve → 1597Maximum Subarray Min-ProductMediumArrayStackMonotonic Stack
Solve → 1598Find Building Where Alice and Bob Can MeetHardArrayBinary SearchStack
Solve → 1599Maximum Possible Number by Binary ConcatenationMediumArrayBit ManipulationEnumeration
Solve → 1600Find Triangular Sum of an ArrayMediumArrayMathSimulation
Solve → 1601Ways to Split Array Into Three SubarraysMediumArrayTwo PointersBinary Search
Solve → 1602Two City SchedulingMediumArrayGreedySorting
Solve → 1603Row With Maximum OnesEasyArrayMatrix
Solve → 1604Minimum Operations to Exceed Threshold Value IIMediumArrayHeap (Priority Queue)Simulation
Solve → 1605Minimum Difference in Sums After Removal of ElementsHardArrayDynamic ProgrammingHeap (Priority Queue)
Solve → 1606Uncrossed LinesMediumArrayDynamic Programming
Solve → 1607Count Items Matching a RuleEasyArrayString
Solve → 1608Number of Distinct Islands IIHardArrayHash TableDepth-First Search
Solve → 1609Find the Maximum Number of Fruits CollectedHardArrayDynamic ProgrammingMatrix
Solve → 1610Divide Array Into Equal PairsEasyArrayHash TableBit Manipulation
Solve → 1611Length of Longest V-Shaped Diagonal SegmentHardArrayDynamic ProgrammingMemoization
Solve → 1612Sum of DistancesMediumArrayHash TablePrefix Sum
Solve → 1613Sum of Unique ElementsEasyArrayHash TableCounting
Solve → 1614Sum of All Odd Length SubarraysEasyArrayMathPrefix Sum
Solve → 1615Longest Non-decreasing Subarray From Two ArraysMediumArrayDynamic Programming
Solve → 1616Minimum Operations to Make a Uni-Value GridMediumArrayMathSorting
Solve → 1617Partition Array Such That Maximum Difference Is KMediumArrayGreedySorting
Solve → 1618Find the Divisibility Array of a StringMediumArrayMathString
Solve → 1619Shifting LettersMediumArrayStringPrefix Sum
Solve → 1620Minimum Number of Operations to Make Elements in Array DistinctEasyArrayHash Table
Solve → 1621Find the String with LCPHardArrayStringDynamic Programming
Solve → 1622Maximum Number of Tasks You Can AssignHardArrayTwo PointersBinary Search
Solve → 1623Check if Matrix Is X-MatrixEasyArrayMatrix
Solve → 1624Longest Special Path IIHardArrayHash TableTree
Solve → 1625Make Array Non-decreasingMediumArrayStackGreedy
Solve → 1626Buildings With an Ocean ViewMediumArrayStackMonotonic Stack
Solve → 1627Stone Game VIIMediumArrayMathDynamic Programming
Solve → 1628Reshape the MatrixEasyArrayMatrixSimulation
Solve → 1629Check If It Is a Good ArrayHardArrayMathNumber Theory
Solve → 1630Maximum Area of Longest Diagonal RectangleEasyArray
Solve → 1631Maximum Candies You Can Get from BoxesHardArrayBreadth-First SearchGraph Theory
Solve → 1632Count Special QuadrupletsEasyArrayHash TableEnumeration
Solve → 1633Unique 3-Digit Even NumbersEasyArrayHash TableRecursion
Solve → 1634Find Nearest Point That Has the Same X or Y CoordinateEasyArray
Solve → 1635Shortest Word Distance IIMediumArrayHash TableTwo Pointers
Solve → 1636Longest Subsequence With Limited SumEasyArrayBinary SearchGreedy
Solve → 1637Sum of Absolute Differences in a Sorted ArrayMediumArrayMathPrefix Sum
Solve → 1638Reducing DishesHardArrayDynamic ProgrammingGreedy
Solve → 1639Allocate MailboxesHardArrayMathDynamic Programming
Solve → 1640Coupon Code ValidatorEasyArrayHash TableString
Solve → 1641Max Dot Product of Two SubsequencesHardArrayDynamic Programming
Solve → 1642Task Scheduler IIMediumArrayHash TableSimulation
Solve → 1643Best Time to Buy and Sell Stock with Transaction FeeMediumArrayDynamic ProgrammingGreedy
Solve → 1644Minimum Cost to Reach Destination in TimeHardArrayDynamic ProgrammingGraph Theory
Solve → 1645Find the Minimum Area to Cover All Ones IIHardArrayMatrixEnumeration
Solve → 1646Partition Array for Maximum XOR and ANDHardArrayMathGreedy
Solve → 1647Trionic Array IIHardArrayDynamic Programming
Solve → 1648Subsequence Sum After Capping ElementsMediumArrayTwo PointersDynamic Programming
Solve → 1649Design SpreadsheetMediumArrayHash TableString
Solve → 1650Minimum Moves to Move a Box to Their Target LocationHardArrayBreadth-First SearchHeap (Priority Queue)
Solve → 1651Minimum Number GameEasyArraySortingHeap (Priority Queue)
Solve → 1652Divide an Array Into Subarrays With Minimum Cost IIHardArrayHash TableSliding Window
Solve → 1653Count Special TripletsMediumArrayHash TableCounting
Solve → 1654Maximum Profit from Trading Stocks with DiscountsHardArrayDynamic ProgrammingTree
Solve → 1655Maximum Length of Pair ChainMediumArrayDynamic ProgrammingGreedy
Solve → 1656Stickers to Spell WordHardArrayHash TableString
Solve → 1657Number of Lines To Write StringEasyArrayString
Solve → 1658Diagonal Traverse IIMediumArraySortingHeap (Priority Queue)
Solve → 1659Minimum Sideway JumpsMediumArrayDynamic ProgrammingGreedy
Solve → 1660Maximum White Tiles Covered by a CarpetMediumArrayBinary SearchGreedy
Solve → 1661Check if There is a Valid Partition For The ArrayMediumArrayDynamic Programming
Solve → 1662Most Profitable Path in a TreeMediumArrayTreeDepth-First Search
Solve → 1663Minimum Common ValueEasyArrayHash TableTwo Pointers
Solve → 1664Amount of New Area Painted Each DayHardArraySegment TreeOrdered Set
Solve → 1665Verifying an Alien DictionaryEasyArrayHash TableString
Solve → 1666Count Triplets That Can Form Two Arrays of Equal XORMediumArrayHash TableMath
Solve → 1667Least Number of Unique Integers after K RemovalsMediumArrayHash TableGreedy
Solve → 1668Bomb EnemyMediumArrayDynamic ProgrammingMatrix
Solve → 1669Prefix and Suffix SearchHardArrayHash TableString
Solve → 1670Most Frequent PrimeMediumArrayHash TableMath
Solve → 1671Replace WordsMediumArrayHash TableString
Solve → 1672Count the Number of Good PartitionsHardArrayHash TableMath
Solve → 1673Paint HouseMediumArrayDynamic Programming
Solve → 1674Maximize Total Cost of Alternating SubarraysMediumArrayDynamic Programming
Solve → 1675Count Subarrays With Median KHardArrayHash TablePrefix Sum
Solve → 1676Verbal Arithmetic PuzzleHardArrayMathString
Solve → 1677Minimum Cost to Make Array EqualindromicMediumArrayMathBinary Search
Solve → 1678Maximum Number of Accepted InvitationsMediumArrayDepth-First SearchGraph Theory
Solve → 1679Find Maximum Non-decreasing Array LengthHardArrayBinary SearchDynamic Programming
Solve → 1680Smallest Index With Equal ValueEasyArray
Solve → 1681Closest Dessert CostMediumArrayDynamic ProgrammingBacktracking
Solve → 1682Largest Positive Integer That Exists With Its NegativeEasyArrayHash TableTwo Pointers
Solve → 1683Beautiful Arrangement IIMediumArrayMath
Solve → 1684Profitable SchemesHardArrayDynamic Programming
Solve → 1685Widest Vertical Area Between Two Points Containing No PointsEasyArraySorting
Solve → 1686Maximize Consecutive Elements in an Array After ModificationHardArrayDynamic ProgrammingSorting
Solve → 1687Average Waiting TimeMediumArraySimulation
Solve → 1688Coloring A BorderMediumArrayDepth-First SearchBreadth-First Search
Solve → 1689Minimum Array Changes to Make Differences EqualMediumArrayHash TablePrefix Sum
Solve → 1690Longest Common Subsequence Between Sorted ArraysMediumArrayHash TableCounting
Solve → 1691Erect the Fence IIHardArrayMathGeometry
Solve → 1692Watering Plants IIMediumArrayTwo PointersSimulation
Solve → 1693Recover the Original ArrayHardArrayHash TableTwo Pointers
Solve → 1694Count Words Obtained After Adding a LetterMediumArrayHash TableString
Solve → 1695All Divisions With the Highest Score of a Binary ArrayMediumArray
Solve → 1696Remove All Ones With Row and Column FlipsMediumArrayMathBit Manipulation
Solve → 1697Create Binary Tree From DescriptionsMediumArrayHash TableTree
Solve → 1698Remove All Ones With Row and Column Flips IIMediumArrayBit ManipulationBreadth-First Search
Solve → 1699Unique Word AbbreviationMediumArrayHash TableString
Solve → 1700Check if There Is a Valid Parentheses String PathHardArrayDynamic ProgrammingMatrix
Solve → 1701Design an ATM MachineMediumArrayGreedyDesign
Solve → 1702Super Ugly NumberMediumArrayMathDynamic Programming
Solve → 1703Minimum Lines to Represent a Line ChartMediumArrayMathGeometry
Solve → 1704Count Positions on Street With Required BrightnessMediumArrayPrefix Sum
Solve → 1705Subarray With Elements Greater Than Varying ThresholdHardArrayStackUnion-Find
Solve → 1706Shortest Impossible Sequence of RollsHardArrayHash TableGreedy
Solve → 1707Minimum Unique Word AbbreviationHardArrayStringBacktracking
Solve → 1708Valid Word SquareEasyArrayMatrix
Solve → 1709Word SquaresHardArrayStringBacktracking
Solve → 1710Sort Array by Moving Items to Empty SpaceHardArrayHash TableSorting
Solve → 1711Minimize Maximum Value in a GridHardArrayUnion-FindGraph Theory
Solve → 1712Number of Pairs Satisfying InequalityHardArrayBinary SearchDivide and Conquer
Solve → 1713Convex PolygonMediumArrayMathGeometry
Solve → 1714Find PermutationMediumArrayStringStack
Solve → 1715Count Subarrays With More Ones Than ZerosMediumArrayHash TableBinary Search
Solve → 1716Lonely Pixel IMediumArrayHash TableMatrix
Solve → 1717Lonely Pixel IIMediumArrayHash TableMatrix
Solve → 1718Maximum Vacation DaysHardArrayDynamic ProgrammingMatrix
Solve → 1719Shopping OffersMediumArrayDynamic ProgrammingBacktracking
Solve → 1720Maximum Average Subarray IIHardArrayBinary SearchPrefix Sum
Solve → 1721Coin PathHardArrayDynamic Programming
Solve → 1722Bold Words in StringMediumArrayHash TableString
Solve → 1723Find Anagram MappingsEasyArrayHash Table
Solve → 1724Transform to ChessboardHardArrayMathBit Manipulation
Solve → 1725Count Houses in a Circular StreetEasyArrayInteractive
Solve → 1726Random Pick with BlacklistHardArrayHash TableMath
Solve → 1727Count Pairs of Points With Distance kMediumArrayHash TableBit Manipulation
Solve → 1728Minimum Absolute Difference Between Elements With ConstraintMediumArrayBinary SearchOrdered Set
Solve → 1729Array of Doubled PairsMediumArrayHash TableGreedy
Solve → 1730Campus Bikes IIMediumArrayDynamic ProgrammingBacktracking
Solve → 1731Camelcase MatchingMediumArrayTwo PointersString
Solve → 1732Divide Array Into Increasing SequencesHardArrayCounting
Solve → 1733Minimum Increment Operations to Make Array BeautifulMediumArrayDynamic Programming
Solve → 1734Shortest Distance to Target ColorMediumArrayBinary SearchDynamic Programming
Solve → 1735Find Champion IEasyArrayMatrix
Solve → 1736Minimum Time to Build BlocksHardArrayMathGreedy
Solve → 1737Largest Values From LabelsMediumArrayHash TableGreedy
Solve → 1738Number of Equal Numbers BlocksMediumArrayBinary SearchInteractive
Solve → 1739Find the Number of Ways to Place People IIHardArrayMathGeometry
Solve → 1740Compare Strings by Frequency of the Smallest CharacterMediumArrayHash TableString
Solve → 1741Distance Between Bus StopsEasyArray
Solve → 1742Minimum Sum of Values by Dividing ArrayHardArrayBinary SearchDynamic Programming
Solve → 1743Maximum Font to Fit a Sentence in a ScreenMediumArrayStringBinary Search
Solve → 1744Minimum Path Cost in a GridMediumArrayDynamic ProgrammingMatrix
Solve → 1745Form Largest Integer With Digits That Add up to TargetHardArrayDynamic Programming
Solve → 1746People Whose List of Favorite Companies Is Not a Subset of Another ListMediumArrayHash TableString
Solve → 1747The k Strongest Values in an ArrayMediumArrayTwo PointersSorting
Solve → 1748Maximum Number of Non-Overlapping Subarrays With Sum Equals TargetMediumArrayHash TableGreedy
Solve → 1749Guess the Majority in a Hidden ArrayMediumArrayMathInteractive
Solve → 1750Find Latest Group of Size MMediumArrayHash TableBinary Search
Solve → 1751The Most Similar Path in a GraphHardArrayStringDynamic Programming
Solve → 1752Strange Printer IIHardArrayGraph TheoryTopological Sort
Solve → 1753Put Boxes Into the Warehouse IMediumArrayGreedySorting
Solve → 1754Put Boxes Into the Warehouse IIMediumArrayGreedySorting
Solve → 1755Largest Subarray Length KEasyArrayGreedy
Solve → 1756Tree of CoprimesHardArrayMathTree
Solve → 1757Minimum Number of Operations to Reinitialize a PermutationMediumArrayMathSimulation
Solve → 1758Minimum Speed to Arrive on TimeMediumArrayBinary Search
Solve → 1759Longest Word With All PrefixesMediumArrayStringDepth-First Search
Solve → 1760Minimum Skips to Arrive at Meeting On TimeHardArrayDynamic Programming
Solve → 1761Minimize Product Sum of Two ArraysMediumArrayGreedySorting
Solve → 1762Minimum Absolute Difference QueriesMediumArrayPrefix Sum
Solve → 1763Minimum Swaps to Group All 1's Together IIMediumArraySliding Window
Solve → 1764Alternating Groups IEasyArraySliding Window
Solve → 1765Kth Distinct String in an ArrayEasyArrayHash TableString
Solve → 1766Find if Array Can Be SortedMediumArrayBit ManipulationSorting
Solve → 1767Minimum Operations to Make Array Equal to TargetHardArrayDynamic ProgrammingStack
Solve → 1768K-th Nearest Obstacle QueriesMediumArrayHeap (Priority Queue)
Solve → 1769Check Knight Tour ConfigurationMediumArrayDepth-First SearchBreadth-First Search
Solve → 1770Maximum XOR Score Subarray QueriesHardArrayDynamic Programming
Solve → 1771Find Missing ObservationsMediumArrayMathSimulation
Solve → 1772Projection Area of 3D ShapesEasyArrayMathGeometry
Solve → 1773Maximal Score After Applying K OperationsMediumArrayGreedyHeap (Priority Queue)
Solve → 1774Sorted GCD Pair QueriesHardArrayHash TableMath
Solve → 1775Snake in MatrixEasyArrayStringSimulation
Solve → 1776Maximum Number of Moves to Kill All PawnsHardArrayMathBit Manipulation
Solve → 1777Minimum Division Operations to Make Array Non DecreasingMediumArrayMathGreedy
Solve → 1778Longest Square Streak in an ArrayMediumArrayHash TableBinary Search
Solve → 1779Neighboring Bitwise XORMediumArrayBit Manipulation
Solve → 1780Maximum Size Subarray Sum Equals kMediumArrayHash TablePrefix Sum
Solve → 1781Maximum Star Sum of a GraphMediumArrayGreedyGraph Theory
Solve → 1782Find the Middle Index in ArrayEasyArrayPrefix Sum
Solve → 1783Stone Game VHardArrayMathDynamic Programming
Solve → 1784Sum of Good NumbersEasyArray
Solve → 1785Final Array State After K Multiplication Operations IEasyArrayMathHeap (Priority Queue)
Solve → 1786Count Prefix and Suffix Pairs IEasyArrayStringTrie
Solve → 1787Sparse Matrix MultiplicationMediumArrayHash TableMatrix
Solve → 1788Find Maximum Removals From Source StringMediumArrayHash TableTwo Pointers
Solve → 1789Maximize Amount After Two Days of ConversionsMediumArrayStringDepth-First Search
Solve → 1790Cells with Odd Values in a MatrixEasyArrayMathSimulation
Solve → 1791Find the Kth Largest Integer in the ArrayMediumArrayStringDivide and Conquer
Solve → 1792Make Lexicographically Smallest Array by Swapping ElementsMediumArrayUnion-FindSorting
Solve → 1793Longest Subsequence With Decreasing Adjacent DifferenceMediumArrayDynamic Programming
Solve → 1794Super Washing MachinesHardArrayGreedy
Solve → 1795Find the Number of Copy ArraysMediumArrayMath
Solve → 1796Maximum Path Quality of a GraphHardArrayBacktrackingGraph Theory
Solve → 1797Number of Subarrays with Bounded MaximumMediumArrayTwo Pointers
Solve → 1798Smallest Substring With Identical Characters IHardArrayBinary SearchEnumeration
Solve → 1799Minimum Index Sum of Two ListsEasyArrayHash TableString
Solve → 1800Max Pair Sum in an ArrayEasyArrayHash Table
Solve → 1801Find the XOR of Numbers Which Appear TwiceEasyArrayHash TableBit Manipulation
Solve → 1802Find Indices of Stable MountainsEasyArray
Solve → 1803Minimum Amount of Time to Fill CupsEasyArrayGreedySorting
Solve → 1804Encrypt and Decrypt StringsHardArrayHash TableString
Solve → 1805Count Vowel Strings in RangesMediumArrayStringPrefix Sum
Solve → 1806Count Pairs That Form a Complete Day IIMediumArrayHash TableCounting
Solve → 1807Closest Subsequence SumHardArrayTwo PointersDynamic Programming
Solve → 1808Movement of RobotsMediumArrayBrainteaserSorting
Solve → 1809Contain VirusHardArrayDepth-First SearchBreadth-First Search
Solve → 1810Count Subarrays of Length Three With a ConditionEasyArray
Solve → 1811Maximum Product After K IncrementsMediumArrayGreedyHeap (Priority Queue)
Solve → 1812Zero Array Transformation IVMediumArrayDynamic Programming
Solve → 1813Merge Operations for Minimum Travel TimeHardArrayDynamic ProgrammingPrefix Sum
Solve → 1814Group the People Given the Group Size They Belong ToMediumArrayHash TableGreedy
Solve → 1815Minimum Moves to Spread Stones Over GridMediumArrayDynamic ProgrammingBacktracking
Solve → 1816Closest Node to Path in TreeHardArrayTreeDepth-First Search
Solve → 1817Find Minimum Time to Finish All JobsHardArrayDynamic ProgrammingBacktracking
Solve → 1818Minimize Malware SpreadHardArrayHash TableDepth-First Search
Solve → 1819Minimum Cost to Make Arrays IdenticalMediumArrayGreedySorting
Solve → 1820Length of the Longest Valid SubstringHardArrayHash TableString
Solve → 1821Missing Element in Sorted ArrayMediumArrayBinary Search
Solve → 1822Find Minimum Time to Reach Last Room IIMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 1823Largest Magic SquareMediumArrayMatrixPrefix Sum
Solve → 1824Zigzag Grid Traversal With SkipEasyArrayMatrixSimulation
Solve → 1825Find All Groups of FarmlandMediumArrayDepth-First SearchBreadth-First Search
Solve → 1826Delete Greatest Value in Each RowEasyArraySortingHeap (Priority Queue)
Solve → 1827Earliest Second to Mark Indices IIHardArrayBinary SearchGreedy
Solve → 1828Reorder Data in Log FilesMediumArrayStringSorting
Solve → 1829Longest Word in DictionaryMediumArrayHash TableString
Solve → 1830Shortest Path in a Hidden GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 1831Shift Distance Between Two StringsMediumArrayStringPrefix Sum
Solve → 1832Maximum Length of a Concatenated String with Unique CharactersMediumArrayStringBacktracking
Solve → 18333Sum With MultiplicityMediumArrayHash TableTwo Pointers
Solve → 1834Card Flipping GameMediumArrayHash Table
Solve → 1835Make the XOR of All Segments Equal to ZeroHardArrayHash TableDynamic Programming
Solve → 1836The Maze IIIHardArrayStringDepth-First Search
Solve → 1837Create Sorted Array through InstructionsHardArrayBinary SearchDivide and Conquer
Solve → 1838Find Maximum Area of a TriangleMediumArrayHash TableMath
Solve → 1839Maximum Value of a String in an ArrayEasyArrayString
Solve → 1840Non-decreasing SubsequencesMediumArrayHash TableBacktracking
Solve → 1841Count Elements With Strictly Smaller and Greater ElementsEasyArraySortingCounting
Solve → 1842Sum of Squares of Special ElementsEasyArrayEnumeration
Solve → 1843Distribute CandiesEasyArrayHash Table
Solve → 1844Maximum Matching of Players With TrainersMediumArrayTwo PointersGreedy
Solve → 1845Split the ArrayEasyArrayHash TableCounting
Solve → 1846Find the K-Sum of an ArrayHardArraySortingHeap (Priority Queue)
Solve → 1847Count Islands With Total Value Divisible by KMediumArrayDepth-First SearchBreadth-First Search
Solve → 1848Minimum Cost to Make Array EqualHardArrayBinary SearchGreedy
Solve → 1849Partition Array Into Three Parts With Equal SumEasyArrayGreedy
Solve → 1850Minimum Score After Removals on a TreeHardArrayBit ManipulationTree
Solve → 1851Largest Element in an Array after Merge OperationsMediumArrayGreedy
Solve → 1852Count Prime-Gap Balanced SubarraysMediumArrayMathQueue
Solve → 1853Convert an Array Into a 2D Array With ConditionsMediumArrayHash Table
Solve → 1854Minimum Cost to Convert String IIHardArrayStringDynamic Programming
Solve → 1855Sum of Beautiful SubsequencesHardArrayMathBinary Indexed Tree
Solve → 1856Collect Coins in a TreeHardArrayTreeGraph Theory
Solve → 1857Maximum Total from Optimal Activation OrderMediumArrayTwo PointersGreedy
Solve → 1858Minimum Array SumMediumArrayDynamic Programming
Solve → 1859Maximum Alternating Subsequence SumMediumArrayDynamic Programming
Solve → 1860Invalid TransactionsMediumArrayHash TableString
Solve → 1861Number of Stable SubsequencesHardArrayDynamic Programming
Solve → 1862Range Sum Query - MutableMediumArrayDivide and ConquerDesign
Solve → 1863Maximize Sum Of Array After K NegationsEasyArrayGreedySorting
Solve → 1864Partition Array Into K-Distinct GroupsMediumArrayHash TableCounting
Solve → 1865Minimum Average of Smallest and Largest ElementsEasyArrayTwo PointersSorting
Solve → 1866Find Common Elements Between Two ArraysEasyArrayHash Table
Solve → 1867Minimum Difficulty of a Job ScheduleHardArrayDynamic Programming
Solve → 1868Count Bowl SubarraysMediumArrayStackMonotonic Stack
Solve → 1869Find the Number of Winning PlayersEasyArrayHash TableCounting
Solve → 1870Apply Operations to Maximize Frequency ScoreHardArrayBinary SearchSliding Window
Solve → 1871Implement RouterMediumArrayHash TableBinary Search
Solve → 1872Path Existence Queries in a Graph IIHardArrayTwo PointersBinary Search
Solve → 1873Find The Original Array of Prefix XorMediumArrayBit Manipulation
Solve → 1874Maximum Area Rectangle With Point Constraints IIHardArrayMathBinary Indexed Tree
Solve → 1875Maximum Amount of Money Robot Can EarnMediumArrayDynamic ProgrammingMatrix
Solve → 1876Distinct Prime Factors of Product of ArrayMediumArrayHash TableMath
Solve → 1877Number of Arithmetic TripletsEasyArrayHash TableTwo Pointers
Solve → 1878Split Array With Same AverageHardArrayHash TableMath
Solve → 1879Find Players With Zero or One LossesMediumArrayHash TableSorting
Solve → 1880Escape a Large MazeHardArrayHash TableDepth-First Search
Solve → 1881Find the Largest Almost Missing IntegerEasyArrayHash Table
Solve → 1882Sum of Perfect Square AncestorsHardArrayHash TableMath
Solve → 1883Smallest Missing Integer Greater Than Sequential Prefix SumEasyArrayHash TableSorting
Solve → 1884Maximum Count of Positive Integer and Negative IntegerEasyArrayBinary SearchCounting
Solve → 1885Candy CrushMediumArrayTwo PointersMatrix
Solve → 1886Number of Valid Move Combinations On ChessboardHardArrayStringBacktracking
Solve → 1887Find and Replace PatternMediumArrayHash TableString
Solve → 1888Find the Longest Valid Obstacle Course at Each PositionHardArrayBinary SearchBinary Indexed Tree
Solve → 1889Find Minimum Cost to Remove Array ElementsMediumArrayDynamic Programming
Solve → 1890Find Servers That Handled Most Number of RequestsHardArrayHeap (Priority Queue)Simulation
Solve → 1891Maximum Product of Three Elements After One ReplacementMediumArrayMathGreedy
Solve → 1892Partition Array into Disjoint IntervalsMediumArray
Solve → 1893Smallest Range IEasyArrayMath
Solve → 1894Find Missing ElementsEasyArrayHash TableSorting
Solve → 1895Minimum Jumps to Reach End via Prime TeleportationMediumArrayHash TableMath
Solve → 1896Minimum Initial Energy to Finish TasksHardArrayGreedySorting
Solve → 1897Minimum Moves to Make Array ComplementaryMediumArrayHash TablePrefix Sum
Solve → 1898Make Array EmptyHardArrayBinary SearchGreedy
Solve → 1899Maximum Area of a Piece of Cake After Horizontal and Vertical CutsMediumArrayGreedySorting
Solve → 1900Best Team With No ConflictsMediumArrayDynamic ProgrammingSorting
Solve → 1901Smallest Index With Digit Sum Equal to IndexEasyArrayMath
Solve → 1902Sort Even and Odd Indices IndependentlyEasyArraySorting
Solve → 1903Binary Prefix Divisible By 5EasyArrayBit Manipulation
Solve → 1904Count Partitions with Even Sum DifferenceEasyArrayMathPrefix Sum
Solve → 1905Earliest Finish Time for Land and Water Rides IEasyArrayTwo PointersBinary Search
Solve → 1906Binary Trees With FactorsMediumArrayHash TableDynamic Programming
Solve → 1907Sum of Variable Length SubarraysEasyArrayPrefix Sum
Solve → 1908Count the Number of InversionsHardArrayDynamic Programming
Solve → 1909Count Submatrices with Top-Left Element and Sum Less Than kMediumArrayMatrixPrefix Sum
Solve → 1910Apply Operations to Make All Array Elements Equal to ZeroMediumArrayPrefix Sum
Solve → 1911Length of Longest Subarray With at Most K FrequencyMediumArrayHash TableSliding Window
Solve → 1912K Radius Subarray AveragesMediumArraySliding Window
Solve → 1913Append K Integers With Minimal SumMediumArrayMathGreedy
Solve → 1914Minimize Maximum Pair Sum in ArrayMediumArrayTwo PointersGreedy
Solve → 1915Two-Letter Card GameMediumArrayHash TableString
Solve → 1916Number of Sub-arrays of Size K and Average Greater than or Equal to ThresholdMediumArraySliding Window
Solve → 1917Maximize Happiness of Selected ChildrenMediumArrayGreedySorting
Solve → 1918Buy Two ChocolatesEasyArrayGreedySorting
Solve → 1919Difference Between Element Sum and Digit Sum of an ArrayEasyArrayMath
Solve → 1920Two SumEasyArrayHash Table
Solve → 1921Median of Two Sorted ArraysHardArrayBinary SearchDivide and Conquer
Solve → 1922Trapping Rain WaterHardArrayTwo PointersDynamic Programming
Solve → 1923Longest Common PrefixEasyArrayStringTrie
Solve → 1924Merge Sorted ArrayEasyArrayTwo PointersSorting
Solve → 19253SumMediumArrayTwo PointersSorting
Solve → 1926Best Time to Buy and Sell StockEasyArrayDynamic Programming
Solve → 1927Longest Consecutive SequenceMediumArrayHash TableUnion-Find
Solve → 1928Container With Most WaterMediumArrayTwo PointersGreedy
Solve → 1929Majority ElementEasyArrayHash TableDivide and Conquer
Solve → 1930Merge IntervalsMediumArraySorting
Solve → 1931Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 1932Maximum SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 1933Remove Duplicates from Sorted ArrayEasyArrayTwo Pointers
Solve → 1934Subarray Sum Equals KMediumArrayHash TablePrefix Sum
Solve → 1935Next PermutationMediumArrayTwo Pointers
Solve → 1936Spiral MatrixMediumArrayMatrixSimulation
Solve → 1937Meeting Rooms IIMediumArrayTwo PointersGreedy
Solve → 1938Remove ElementEasyArrayTwo Pointers
Solve → 1939Koko Eating BananasMediumArrayBinary Search
Solve → 1940Search in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 1941Move ZeroesEasyArrayTwo Pointers
Solve → 1942Pascal's TriangleEasyArrayDynamic Programming
Solve → 1943Minimum Number of Increments on Subarrays to Form a Target ArrayHardArrayDynamic ProgrammingStack
Solve → 19444SumMediumArrayTwo PointersSorting
Solve → 1945Single NumberEasyArrayBit Manipulation
Solve → 1946N-QueensHardArrayBacktracking
Solve → 1947Largest Rectangle in HistogramHardArrayStackMonotonic Stack
Solve → 1948Jump GameMediumArrayDynamic ProgrammingGreedy
Solve → 1949Concatenation of ArrayEasyArraySimulation
Solve → 1950Split Array Largest SumHardArrayBinary SearchDynamic Programming
Solve → 1951Find Peak ElementMediumArrayBinary Search
Solve → 1952Top K Frequent ElementsMediumArrayHash TableDivide and Conquer
Solve → 1953Rotate ArrayMediumArrayMathTwo Pointers
Solve → 1954House RobberMediumArrayDynamic Programming
Solve → 1955Kth Largest Element in an ArrayMediumArrayDivide and ConquerSorting
Solve → 1956Rotate ImageMediumArrayMathMatrix
Solve → 1957Group AnagramsMediumArrayHash TableString
Solve → 1958Search Insert PositionEasyArrayBinary Search
Solve → 1960Max Consecutive OnesEasyArray
Solve → 1961Sort ColorsMediumArrayTwo PointersSorting
Solve → 1962Sliding Window MaximumHardArrayQueueSliding Window
Solve → 1963Product of Array Except SelfMediumArrayPrefix Sum
Solve → 1964Single Element in a Sorted ArrayMediumArrayBinary Search
Solve → 1965Russian Doll EnvelopesHardArrayBinary SearchDynamic Programming
Solve → 1966Longest Increasing SubsequenceMediumArrayBinary SearchDynamic Programming
Solve → 1967Number of Visible People in a QueueHardArrayStackMonotonic Stack
Solve → 1968Set Matrix ZeroesMediumArrayHash TableMatrix
Solve → 1969Find First and Last Position of Element in Sorted ArrayMediumArrayBinary Search
Solve → 1970Maximal SquareMediumArrayDynamic ProgrammingMatrix
Solve → 1971SubsetsMediumArrayBacktrackingBit Manipulation
Solve → 1972Binary SearchEasyArrayBinary Search
Solve → 1973Maximal RectangleHardArrayDynamic ProgrammingStack
Solve → 1974Rotting OrangesMediumArrayBreadth-First SearchMatrix
Solve → 1975Contains DuplicateEasyArrayHash TableSorting
Solve → 1976Intersection of Two ArraysEasyArrayHash TableTwo Pointers
Solve → 1977PermutationsMediumArrayBacktracking
Solve → 1978Maximum Product SubarrayMediumArrayDynamic Programming
Solve → 1979Coin ChangeMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 1980Count Number of Trapezoids IIHardArrayHash TableMath
Solve → 19813Sum ClosestMediumArrayTwo PointersSorting
Solve → 1982First Missing PositiveHardArrayHash Table
Solve → 1983Max Consecutive Ones IIIMediumArrayBinary SearchSliding Window
Solve → 1984Two Sum II - Input Array Is SortedMediumArrayTwo PointersBinary Search
Solve → 1985Fruit Into BasketsMediumArrayHash TableSliding Window
Solve → 1986Insert Delete GetRandom O(1)MediumArrayHash TableMath
Solve → 1987Sudoku SolverHardArrayHash TableBacktracking
Solve → 1988Best Time to Buy and Sell Stock IIMediumArrayDynamic ProgrammingGreedy
Solve → 1989Jump Game IIMediumArrayDynamic ProgrammingGreedy
Solve → 1990Find All Numbers Disappeared in an ArrayEasyArrayHash Table
Solve → 1991The Earliest Moment When Everyone Become FriendsMediumArrayUnion-FindSorting
Solve → 1992Valid SudokuMediumArrayHash TableMatrix
Solve → 1994Contains Duplicate IIEasyArrayHash TableSliding Window
Solve → 1995Zero Array Transformation IMediumArrayPrefix Sum
Solve → 1996Partition Equal Subset SumMediumArrayDynamic Programming
Solve → 1997Combination SumMediumArrayBacktracking
Solve → 1998Daily TemperaturesMediumArrayStackMonotonic Stack
Solve → 1999Running Sum of 1d ArrayEasyArrayPrefix Sum
Solve → 2000Guess the WordHardArrayMathString
Solve → 2001Count PrimesMediumArrayMathEnumeration
Solve → 2002Peak Index in a Mountain ArrayMediumArrayBinary Search
Solve → 2003Separate Squares IMediumArrayBinary Search
Solve → 2004Insert IntervalMediumArray
Solve → 2005Text JustificationHardArrayStringSimulation
Solve → 2006Sum of Subarray MinimumsMediumArrayDynamic ProgrammingStack
Solve → 2007Word BreakMediumArrayHash TableString
Solve → 2008Sort an ArrayMediumArrayDivide and ConquerSorting
Solve → 2009Missing NumberEasyArrayHash TableMath
Solve → 2010Minimum Area RectangleMediumArrayHash TableMath
Solve → 2011Count Number of Trapezoids IMediumArrayHash TableMath
Solve → 2012Find the Duplicate NumberMediumArrayTwo PointersBinary Search
Solve → 2013Next Greater Element IIMediumArrayStackMonotonic Stack
Solve → 2014Subsets IIMediumArrayBacktrackingBit Manipulation
Solve → 2015Reverse PairsHardArrayBinary SearchDivide and Conquer
Solve → 2016Random Pick with WeightMediumArrayMathBinary Search
Solve → 2017Capacity To Ship Packages Within D DaysMediumArrayBinary Search
Solve → 2018Unique Number of OccurrencesEasyArrayHash Table
Solve → 2019Maximum Average Subarray IEasyArraySliding Window
Solve → 2020Check if Array Is Sorted and RotatedEasyArray
Solve → 2021Surrounded RegionsMediumArrayDepth-First SearchBreadth-First Search
Solve → 2022Largest NumberMediumArrayStringGreedy
Solve → 2023Target SumMediumArrayDynamic ProgrammingBacktracking
Solve → 2024Word SearchMediumArrayStringBacktracking
Solve → 2025Search a 2D Matrix IIMediumArrayBinary SearchDivide and Conquer
Solve → 2026Pacific Atlantic Water FlowMediumArrayDepth-First SearchBreadth-First Search
Solve → 2027Squares of a Sorted ArrayEasyArrayTwo PointersSorting
Solve → 2028Apply SubstitutionsMediumArrayHash TableString
Solve → 2029Search a 2D MatrixMediumArrayBinary SearchMatrix
Solve → 2030Meeting Rooms IIIHardArrayHash TableSorting
Solve → 2031Frequency of the Most Frequent ElementMediumArrayBinary SearchGreedy
Solve → 2032Next Greater Element IEasyArrayHash TableStack
Solve → 2033Majority Element IIMediumArrayHash TableSorting
Solve → 2034Burst BalloonsHardArrayDynamic Programming
Solve → 2035Delete Nodes And Return ForestMediumArrayHash TableTree
Solve → 2036Minimum Size Subarray SumMediumArrayBinary SearchSliding Window
Solve → 2037Maximum Width RampMediumArrayTwo PointersStack
Solve → 2038Largest Divisible SubsetMediumArrayMathDynamic Programming
Solve → 2039Swim in Rising WaterHardArrayBinary SearchDepth-First Search
Solve → 2040Minimum Number of Days to Make m BouquetsMediumArrayBinary Search
Solve → 204124 GameHardArrayMathBacktracking
Solve → 2042Remove Duplicates from Sorted Array IIMediumArrayTwo Pointers
Solve → 2043Gas StationMediumArrayGreedy
Solve → 2044Task SchedulerMediumArrayHash TableGreedy
Solve → 2045Find K Closest ElementsMediumArrayTwo PointersBinary Search
Solve → 2046Trapping Rain Water IIHardArrayBreadth-First SearchHeap (Priority Queue)
Solve → 2048Zero Array Transformation IIMediumArrayTwo PointersBinary Search
Solve → 2049Single Number IIMediumArrayBit Manipulation
Solve → 2050Find Minimum in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 2051Longest Increasing Path in a MatrixHardArrayDynamic ProgrammingDepth-First Search
Solve → 205201 MatrixMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 2053Asteroid CollisionMediumArrayStackSimulation
Solve → 2054Group Shifted StringsMediumArrayHash TableString
Solve → 2055Search in Rotated Sorted Array IIMediumArrayBinary Search
Solve → 2056Coin Change IIMediumArrayDynamic Programming
Solve → 2057Can Place FlowersEasyArrayGreedy
Solve → 2058Shortest Path in a Grid with Obstacles EliminationHardArrayBreadth-First SearchMatrix
Solve → 2059Evaluate DivisionMediumArrayStringDepth-First Search
Solve → 2060Evaluate Reverse Polish NotationMediumArrayMathStack
Solve → 2061Minimum Area Rectangle IIMediumArrayHash TableMath
Solve → 2062Count Square Submatrices with All OnesMediumArrayDynamic ProgrammingMatrix
Solve → 2063Find Missing and Repeated ValuesEasyArrayHash TableMath
Solve → 2064Number of Islands IIHardArrayHash TableUnion-Find
Solve → 2065Odd Even JumpHardArrayDynamic ProgrammingStack
Solve → 2066Find All Possible Recipes from Given SuppliesMediumArrayHash TableString
Solve → 2067House Robber IIMediumArrayDynamic Programming
Solve → 2068Find All Duplicates in an ArrayMediumArrayHash TableSorting
Solve → 2069Path With Minimum EffortMediumArrayBinary SearchDepth-First Search
Solve → 2070Can Make Arithmetic Progression From SequenceEasyArraySorting
Solve → 2071Word Search IIHardArrayStringBacktracking
Solve → 2072Moving Average from Data StreamEasyArrayDesignQueue
Solve → 2073Binary Subarrays With SumMediumArrayHash TableSliding Window
Solve → 2074Alien DictionaryHardArrayStringDepth-First Search
Solve → 2075Contiguous ArrayMediumArrayHash TablePrefix Sum
Solve → 2076Number of Matching SubsequencesMediumArrayHash TableString
Solve → 2077Minimum Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 2078Assign CookiesEasyArrayTwo PointersGreedy
Solve → 2079Minimum Number of Operations to Move All Balls to Each BoxMediumArrayStringPrefix Sum
Solve → 2080Minimum Time to Finish the RaceHardArrayDynamic Programming
Solve → 2081Construct Binary Tree from Preorder and Inorder TraversalMediumArrayHash TableDivide and Conquer
Solve → 2082H-IndexMediumArraySortingCounting Sort
Solve → 2083Design Hit CounterMediumArrayBinary SearchDesign
Solve → 2084Find K Pairs with Smallest SumsMediumArrayHeap (Priority Queue)
Solve → 2085Diagonal TraverseMediumArrayMatrixSimulation
Solve → 2086Accounts MergeMediumArrayHash TableString
Solve → 2087Find And Replace in StringMediumArrayHash TableString
Solve → 2088Min Cost Climbing StairsEasyArrayDynamic Programming
Solve → 2089TriangleMediumArrayDynamic Programming
Solve → 2090Snapshot ArrayMediumArrayHash TableBinary Search
Solve → 2091Kth Missing Positive NumberEasyArrayBinary Search
Solve → 2092Best Time to Buy and Sell Stock with CooldownMediumArrayDynamic Programming
Solve → 2093Combination Sum IVMediumArrayDynamic Programming
Solve → 2094Set MismatchEasyArrayHash TableBit Manipulation
Solve → 2095Richest Customer WealthEasyArrayMatrix
Solve → 2096Detect SquaresMediumArrayHash TableDesign
Solve → 2097Rearrange Array Elements by SignMediumArrayTwo PointersSimulation
Solve → 2098Shuffle the ArrayEasyArray
Solve → 2099Single-Threaded CPUMediumArraySortingHeap (Priority Queue)
Solve → 2100The Skyline ProblemHardArrayDivide and ConquerBinary Indexed Tree
Solve → 2101Count of Smaller Numbers After SelfHardArrayBinary SearchDivide and Conquer
Solve → 2102Exclusive Time of FunctionsMediumArrayStack
Solve → 2103Bus RoutesHardArrayHash TableBreadth-First Search
Solve → 2104Rank Transform of an ArrayEasyArrayHash TableSorting
Solve → 2105Number of Closed IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 2106The Latest Time to Catch a BusMediumArrayTwo PointersBinary Search
Solve → 2107Find the Safest Path in a GridMediumArrayBinary SearchBreadth-First Search
Solve → 2108Count Days Without MeetingsMediumArraySorting
Solve → 2109Combination Sum IIMediumArrayBacktracking
Solve → 2110Car FleetMediumArrayStackSorting
Solve → 2111Transpose MatrixEasyArrayMatrixSimulation
Solve → 2112Subarrays with K Different IntegersHardArrayHash TableSliding Window
Solve → 2113Shortest Path in Binary MatrixMediumArrayBreadth-First SearchMatrix
Solve → 2114Sequence ReconstructionMediumArrayGraph TheoryTopological Sort
Solve → 2115Shortest Unsorted Continuous SubarrayMediumArrayTwo PointersStack
Solve → 2116Height of Binary Tree After Subtree Removal QueriesHardArrayTreeDepth-First Search
Solve → 2117Maximum XOR of Two Numbers in an ArrayMediumArrayHash TableBit Manipulation
Solve → 2118Max Area of IslandMediumArrayDepth-First SearchBreadth-First Search
Solve → 2119Continuous SubarraysMediumArrayQueueSliding Window
Solve → 2120Maximum Points You Can Obtain from CardsMediumArraySliding WindowPrefix Sum
Solve → 2121Find Pivot IndexEasyArrayPrefix Sum
Solve → 2122Find X-Sum of All K-Long Subarrays IEasyArrayHash TableSliding Window
Solve → 2123Reconstruct ItineraryHardArrayStringDepth-First Search
Solve → 2124Minimum Cost to Make at Least One Valid Path in a GridHardArrayBreadth-First SearchGraph Theory
Solve → 2125Detonate the Maximum BombsMediumArrayMathDepth-First Search
Solve → 2126Convert Sorted Array to Binary Search TreeEasyArrayDivide and ConquerTree
Solve → 2127Encode and Decode StringsMediumArrayStringDesign
Solve → 2128Design a Stack With Increment OperationMediumArrayStackDesign
Solve → 2129Type of TriangleEasyArrayMathSorting
Solve → 2130Top K Frequent WordsMediumArrayHash TableString
Solve → 2131Maximum Candies Allocated to K ChildrenMediumArrayBinary Search
Solve → 2132Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArrayQueueSliding Window
Solve → 2133Partition Array Into Two Arrays to Minimize Sum DifferenceHardArrayTwo PointersBinary Search
Solve → 2134Time Taken to Cross the DoorHardArrayQueueSimulation
Solve → 2135Range Sum Query - ImmutableEasyArrayDesignPrefix Sum
Solve → 2136Largest Triangle AreaEasyArrayMathGeometry
Solve → 2137Remove Sub-Folders from the FilesystemMediumArrayStringDepth-First Search
Solve → 2138Delete Nodes From Linked List Present in ArrayMediumArrayHash TableLinked List
Solve → 2139Unique Paths IIMediumArrayDynamic ProgrammingMatrix
Solve → 2140Word Break IIHardArrayHash TableString
Solve → 2141Queue Reconstruction by HeightMediumArrayBinary Indexed TreeSegment Tree
Solve → 2142Predict the WinnerMediumArrayMathDynamic Programming
Solve → 2143Flood FillEasyArrayDepth-First SearchBreadth-First Search
Solve → 2144Making A Large IslandHardArrayDepth-First SearchBreadth-First Search
Solve → 2145Minimum Difference Between Largest and Smallest Value in Three MovesMediumArrayGreedySorting
Solve → 2146Sliding Window MedianHardArrayHash TableSliding Window
Solve → 2147Maximum Sum of 3 Non-Overlapping SubarraysHardArrayDynamic ProgrammingSliding Window
Solve → 2148Minimum Falling Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 2149Find in Mountain ArrayHardArrayBinary SearchInteractive
Solve → 2150Tuple with Same ProductMediumArrayHash TableCounting
Solve → 2151Sender With Largest Word CountMediumArrayHash TableString
Solve → 2152Increasing Triplet SubsequenceMediumArrayGreedy
Solve → 2153Flipping an ImageEasyArrayTwo PointersBit Manipulation
Solve → 2154Regions Cut By SlashesMediumArrayHash TableDepth-First Search
Solve → 2155Longest Arithmetic Subsequence of Given DifferenceMediumArrayHash TableDynamic Programming
Solve → 2156Divide Array in Sets of K Consecutive NumbersMediumArrayHash TableGreedy
Solve → 2157Kids With the Greatest Number of CandiesEasyArray
Solve → 2158Minimum Interval to Include Each QueryHardArrayBinary SearchSweep Line
Solve → 2159Maximum Good Subarray SumMediumArrayHash TablePrefix Sum
Solve → 2160Maximum Number of Events That Can Be AttendedMediumArrayGreedySorting
Solve → 2161Inverse Coin ChangeMediumArrayDynamic Programming
Solve → 2162Max Chunks To Make SortedMediumArrayStackGreedy
Solve → 2163Minimum Domino Rotations For Equal RowMediumArrayGreedy
Solve → 2164Find the Difference of Two ArraysEasyArrayHash Table
Solve → 2165Check If N and Its Double ExistEasyArrayHash TableTwo Pointers
Solve → 2166Product of the Last K NumbersMediumArrayMathDesign
Solve → 2167Number of Subsequences That Satisfy the Given Sum ConditionMediumArrayTwo PointersBinary Search
Solve → 2168Find Original Array From Doubled ArrayMediumArrayHash TableGreedy
Solve → 2169Maximum Beauty of an Array After Applying OperationMediumArrayBinary SearchSliding Window
Solve → 2170Best Time to Buy and Sell Stock IIIHardArrayDynamic Programming
Solve → 2171Third Maximum NumberEasyArraySorting
Solve → 2172Non-overlapping IntervalsMediumArrayDynamic ProgrammingGreedy
Solve → 2173Minimum Time DifferenceMediumArrayMathString
Solve → 2174My Calendar IMediumArrayBinary SearchDesign
Solve → 2175Snakes and LaddersMediumArrayBreadth-First SearchMatrix
Solve → 2176K Closest Points to OriginMediumArrayMathDivide and Conquer
Solve → 2177Subarray Sums Divisible by KMediumArrayHash TablePrefix Sum
Solve → 2178Duplicate ZerosEasyArrayTwo Pointers
Solve → 2179How Many Numbers Are Smaller Than the Current NumberEasyArrayHash TableSorting
Solve → 2180Range Sum Query 2D - ImmutableMediumArrayDesignMatrix
Solve → 2182Create Maximum NumberHardArrayTwo PointersStack
Solve → 2183Minimum Operations to Reduce X to ZeroMediumArrayHash TableBinary Search
Solve → 2184Build Array from PermutationEasyArraySimulation
Solve → 2185Check if Word Can Be Placed In CrosswordMediumArrayMatrixEnumeration
Solve → 2186Divide Array Into Arrays With Max DifferenceMediumArrayGreedySorting
Solve → 2187Maximum Number of Ways to Partition an ArrayHardArrayHash TableCounting
Solve → 2188Intersection of Two Arrays IIEasyArrayHash TableTwo Pointers
Solve → 2189Number of EnclavesMediumArrayDepth-First SearchBreadth-First Search
Solve → 2190Number of Good PairsEasyArrayHash TableMath
Solve → 2191Maximum Frequency of an Element After Performing Operations IMediumArrayBinary SearchSliding Window
Solve → 2192Walls and GatesMediumArrayBreadth-First SearchMatrix
Solve → 2193Wiggle Sort IIMediumArrayDivide and ConquerGreedy
Solve → 2194Optimal Account BalancingHardArrayDynamic ProgrammingBacktracking
Solve → 2195My Calendar IIMediumArrayBinary SearchDesign
Solve → 2196Expressive WordsMediumArrayTwo PointersString
Solve → 2197Word SubsetsMediumArrayHash TableString
Solve → 2198Bag of TokensMediumArrayTwo PointersGreedy
Solve → 2199Longest Arithmetic SubsequenceMediumArrayHash TableBinary Search
Solve → 2200Rank Teams by VotesMediumArrayHash TableString
Solve → 2201Count Submatrices With All OnesMediumArrayDynamic ProgrammingStack
Solve → 2202Find the Highest AltitudeEasyArrayPrefix Sum
Solve → 2203Maximum Score of a Node SequenceHardArrayGraph TheorySorting
Solve → 2204Maximum Number of Points with CostMediumArrayDynamic ProgrammingMatrix
Solve → 2205Permutations IIMediumArrayBacktrackingSorting
Solve → 2206Max Points on a LineHardArrayHash TableMath
Solve → 2207Palindrome PairsHardArrayHash TableString
Solve → 2208Island PerimeterEasyArrayDepth-First SearchBreadth-First Search
Solve → 2209HeatersMediumArrayTwo PointersBinary Search
Solve → 2210Path with Maximum ProbabilityMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 2211Sum of Good SubsequencesHardArrayHash TableDynamic Programming
Solve → 2212Zero Array Transformation IIIMediumArrayTwo PointersGreedy
Solve → 2213Count Special SubsequencesMediumArrayHash TableMath
Solve → 2214Count Number of Bad PairsMediumArrayHash TableMath
Solve → 2215Path Existence Queries in a Graph IMediumArrayHash TableBinary Search
Solve → 2216Spiral Matrix IIMediumArrayMatrixSimulation
Solve → 2217Game of LifeMediumArrayMatrixSimulation
Solve → 2218Shortest Distance from All BuildingsHardArrayBreadth-First SearchMatrix
Solve → 2219Sort Transformed ArrayMediumArrayMathTwo Pointers
Solve → 2220Ones and ZeroesMediumArrayStringDynamic Programming
Solve → 2221Magic Squares In GridMediumArrayHash TableMath
Solve → 2222Longest Mountain in ArrayMediumArrayTwo PointersDynamic Programming
Solve → 2223X of a Kind in a Deck of CardsEasyArrayHash TableMath
Solve → 2224Filling Bookcase ShelvesMediumArrayDynamic Programming
Solve → 2225Count Servers that CommunicateMediumArrayDepth-First SearchBreadth-First Search
Solve → 2226Find the Smallest Divisor Given a ThresholdMediumArrayBinary Search
Solve → 2227Stone Game IIIHardArrayMathDynamic Programming
Solve → 2228Build an Array With Stack OperationsMediumArrayStackSimulation
Solve → 2229Longest Subarray of 1's After Deleting One ElementMediumArrayDynamic ProgrammingSliding Window
Solve → 2230Find the Most Competitive SubsequenceMediumArrayStackGreedy
Solve → 2231Convert 1D Array Into 2D ArrayEasyArrayMatrixSimulation
Solve → 2232Find Target Indices After Sorting ArrayEasyArrayBinary SearchSorting
Solve → 2233Counting Words With a Given PrefixEasyArrayStringString Matching
Solve → 2234Find All K-Distant Indices in an ArrayEasyArrayTwo Pointers
Solve → 2235Pascal's Triangle IIEasyArrayDynamic Programming
Solve → 2236Number of Ways to Build Sturdy Brick WallMediumArrayDynamic ProgrammingBit Manipulation
Solve → 2237Maximum Product of Word LengthsMediumArrayStringBit Manipulation
Solve → 2238Relative RanksEasyArraySortingHeap (Priority Queue)
Solve → 2239RLE IteratorMediumArrayDesignCounting
Solve → 2240Interval List IntersectionsMediumArrayTwo PointersSweep Line
Solve → 2241Minimum Cost to Cut a StickHardArrayDynamic ProgrammingSorting
Solve → 2242Check if Grid can be Cut into SectionsMediumArraySorting
Solve → 2243Reschedule Meetings for Maximum Free Time IMediumArrayGreedySliding Window
Solve → 2244Longest Non-Decreasing Subarray After Replacing at Most One ElementMediumArrayDynamic Programming
Solve → 2245Best Time to Buy and Sell Stock IVHardArrayDynamic Programming
Solve → 2246Kth Smallest Element in a Sorted MatrixMediumArrayBinary SearchSorting
Solve → 2247Subarray Product Less Than KMediumArrayBinary SearchSliding Window
Solve → 2248Largest Number At Least Twice of OthersEasyArraySorting
Solve → 2249Construct Binary Tree from Preorder and Postorder TraversalMediumArrayHash TableDivide and Conquer
Solve → 2250Unique Email AddressesEasyArrayHash TableString
Solve → 2251Matrix Block SumMediumArrayMatrixPrefix Sum
Solve → 2252Maximum Side Length of a Square with Sum Less than or Equal to ThresholdMediumArrayBinary SearchMatrix
Solve → 2253Minimize Hamming Distance After Swap OperationsMediumArrayDepth-First SearchUnion-Find
Solve → 2254Largest Submatrix With RearrangementsMediumArrayGreedySorting
Solve → 2255Evaluate the Bracket Pairs of a StringMediumArrayHash TableString
Solve → 2256Describe the PaintingMediumArrayHash TableSorting
Solve → 2257Words Within Two Edits of DictionaryMediumArrayStringTrie
Solve → 2258Merge Two 2D Arrays by Summing ValuesEasyArrayHash TableTwo Pointers
Solve → 2259Longest Increasing Subsequence IIHardArrayDivide and ConquerDynamic Programming
Solve → 2260Toeplitz MatrixEasyArrayMatrix
Solve → 2261Design Circular QueueMediumArrayLinked ListDesign
Solve → 2262Shortest Subarray with Sum at Least KHardArrayBinary SearchQueue
Solve → 2263Maximum Sum Circular SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 2264Valid Mountain ArrayEasyArray
Solve → 2265Minimum Cost to Merge StonesHardArrayDynamic ProgrammingPrefix Sum
Solve → 2266Car PoolingMediumArraySortingHeap (Priority Queue)
Solve → 2267Find the Maximum Length of Valid Subsequence IMediumArrayDynamic Programming
Solve → 2268Furthest Building You Can ReachMediumArrayGreedyHeap (Priority Queue)
Solve → 2269Find the Length of the Longest Common PrefixMediumArrayHash TableString
Solve → 2270Adjacent Increasing Subarrays Detection IEasyArray
Solve → 2271Maximum Number of Distinct Elements After OperationsMediumArrayGreedySorting
Solve → 2272Find the Prefix Common Array of Two ArraysMediumArrayHash TableBit Manipulation
Solve → 2273Count of Range SumHardArrayBinary SearchDivide and Conquer
Solve → 2274Maximize Distance to Closest PersonMediumArray
Solve → 2275Boats to Save PeopleMediumArrayTwo PointersGreedy
Solve → 2276Delete Columns to Make SortedEasyArrayString
Solve → 2277Delete Columns to Make Sorted IIMediumArrayStringGreedy
Solve → 2278Arithmetic SubarraysMediumArrayHash TableSorting
Solve → 2279Find the Number of Ways to Place People IMediumArrayMathGeometry
Solve → 2280Number of Flowers in Full BloomHardArrayHash TableBinary Search
Solve → 2281Minimum Obstacle Removal to Reach CornerHardArrayBreadth-First SearchGraph Theory
Solve → 2282Sort Array By ParityEasyArrayTwo PointersSorting
Solve → 2283Shortest BridgeMediumArrayDepth-First SearchBreadth-First Search
Solve → 2284Special Positions in a Binary MatrixEasyArrayMatrix
Solve → 2285Special Array IEasyArray
Solve → 2286Longest Harmonious SubsequenceEasyArrayHash TableSliding Window
Solve → 2287Path With Maximum Minimum ValueMediumArrayBinary SearchDepth-First Search
Solve → 2288Wiggle SortMediumArrayGreedySorting
Solve → 2289Max Sum of Rectangle No Larger Than KHardArrayBinary SearchMatrix
Solve → 2290UTF-8 ValidationMediumArrayBit Manipulation
Solve → 2291The MazeMediumArrayDepth-First SearchBreadth-First Search
Solve → 2292Longest Word in Dictionary through DeletingMediumArrayTwo PointersString
Solve → 2293Escape The GhostsMediumArrayMath
Solve → 2294Similar String GroupsHardArrayHash TableString
Solve → 2295Online ElectionMediumArrayHash TableBinary Search
Solve → 2296Beautiful ArrayMediumArrayMathDivide and Conquer
Solve → 2297Largest Component Size by Common FactorHardArrayHash TableMath
Solve → 2298Stream of CharactersHardArrayStringDesign
Solve → 2299Longest String ChainMediumArrayHash TableTwo Pointers
Solve → 2300Remove IntervalMediumArray
Solve → 2301Rank Transform of a MatrixHardArrayUnion-FindGraph Theory
Solve → 2302Watering PlantsMediumArraySimulation
Solve → 2303Jump Game IVHardArrayHash TableBreadth-First Search
Solve → 2304Number of Ways of Cutting a PizzaHardArrayDynamic ProgrammingMemoization
Solve → 2305Range Sum of Sorted Subarray SumsMediumArrayTwo PointersBinary Search
Solve → 2306Special Array With X Elements Greater Than or Equal XEasyArrayBinary SearchSorting
Solve → 2307Maximum XOR With an Element From ArrayHardArrayBit ManipulationTrie
Solve → 2308Number of Zero-Filled SubarraysMediumArrayMath
Solve → 2309Build a Matrix With ConditionsHardArrayGraph TheoryTopological Sort
Solve → 2310Number of Good PathsHardArrayHash TableTree
Solve → 2311Find the Maximum Length of Valid Subsequence IIMediumArrayDynamic Programming
Solve → 2312Dungeon GameHardArrayDynamic ProgrammingMatrix
Solve → 2313Range Sum Query 2D - MutableMediumArrayDesignBinary Indexed Tree
Solve → 2314Largest Local Values in a MatrixEasyArrayMatrix
Solve → 2315132 PatternMediumArrayBinary SearchStack
Solve → 2316Continuous Subarray SumMediumArrayHash TableMath
Solve → 2317Employee Free TimeHardArraySweep LineSorting
Solve → 2318Random Point in Non-overlapping RectanglesMediumArrayMathBinary Search
Solve → 2319Path with Maximum GoldMediumArrayBacktrackingMatrix
Solve → 2320Count Number of Nice SubarraysMediumArrayHash TableMath
Solve → 2321Cherry Pickup IIHardArrayDynamic ProgrammingMatrix
Solve → 2322Find the Maximum Sequence Value of ArrayHardArrayDynamic ProgrammingBit Manipulation
Solve → 2323Maximum Frequency of an Element After Performing Operations IIHardArrayBinary SearchSliding Window
Solve → 2324Find Numbers with Even Number of DigitsEasyArrayMath
Solve → 2325Find N Unique Integers Sum up to ZeroEasyArrayMath
Solve → 2326Count Non-Decreasing Subarrays After K OperationsHardArrayStackSegment Tree
Solve → 2327Minimum Pair Removal to Sort Array IEasyArrayHash TableLinked List
Solve → 2328Fill a Special GridMediumArrayDivide and ConquerMatrix
Solve → 23293Sum SmallerMediumArrayTwo PointersBinary Search
Solve → 2330Perfect RectangleHardArrayHash TableMath
Solve → 2331Frog JumpHardArrayDynamic Programming
Solve → 2332Sentence Screen FittingMediumArrayStringDynamic Programming
Solve → 2333Non-decreasing ArrayMediumArray
Solve → 2334Find K-th Smallest Pair DistanceHardArrayTwo PointersBinary Search
Solve → 2335Sentence Similarity IIMediumArrayHash TableString
Solve → 2336Max Chunks To Make Sorted IIHardArrayStackGreedy
Solve → 2337Minimize Max Distance to Gas StationHardArrayBinary Search
Solve → 2338Image OverlapMediumArrayMatrix
Solve → 2339DI String MatchEasyArrayTwo PointersString
Solve → 2340Minimum Cost For TicketsMediumArrayDynamic Programming
Solve → 2341Campus BikesMediumArraySortingHeap (Priority Queue)
Solve → 2342Video StitchingMediumArrayDynamic ProgrammingGreedy
Solve → 2343Decompress Run-Length Encoded ListEasyArray
Solve → 2344Cat and Mouse IIHardArrayMathDynamic Programming
Solve → 2345Checking Existence of Edge Length Limited PathsHardArrayTwo PointersUnion-Find
Solve → 2346Map of Highest PeakMediumArrayBreadth-First SearchMatrix
Solve → 2347Maximum Score of a Good SubarrayHardArrayTwo PointersBinary Search
Solve → 2348Sentence Similarity IIIMediumArrayTwo PointersString
Solve → 2349Eliminate Maximum Number of MonstersMediumArrayGreedySorting
Solve → 2350The Number of Weak Characters in the GameMediumArrayStackGreedy
Solve → 2351Parallel Courses IIIHardArrayDynamic ProgrammingGraph Theory
Solve → 2352Maximum Number of Words Found in SentencesEasyArrayString
Solve → 2353Destroying AsteroidsMediumArrayGreedySorting
Solve → 2354Paths in Matrix Whose Sum Is Divisible by KHardArrayDynamic ProgrammingMatrix
Solve → 2355Count Number of Distinct Integers After Reverse OperationsMediumArrayHash TableMath
Solve → 2356Closest Nodes Queries in a Binary Search TreeMediumArrayBinary SearchTree
Solve → 2357Frog Jump IIMediumArrayBinary SearchGreedy
Solve → 2358Disconnect Path in a Binary Matrix by at Most One FlipMediumArrayDynamic ProgrammingDepth-First Search
Solve → 2359Check if There is a Path With Equal Number of 0's And 1'sMediumArrayDynamic ProgrammingMatrix
Solve → 2360Count the Number of Fair PairsMediumArrayTwo PointersBinary Search
Solve → 2361Prime Subtraction OperationMediumArrayMathBinary Search
Solve → 2362Find the Largest Area of Square Inside Two RectanglesMediumArrayMathGeometry
Solve → 2363Smallest Rectangle Enclosing Black PixelsHardArrayBinary SearchDepth-First Search
Solve → 2364Patching ArrayHardArrayGreedy
Solve → 2365Count Subarrays With Score Less Than KHardArrayBinary SearchSliding Window
Solve → 2366Maximum Sum of Distinct Subarrays With Length KMediumArrayHash TableSliding Window
Solve → 2367Construct Binary Search Tree from Preorder TraversalMediumArrayStackTree
Solve → 2368Search Suggestions SystemMediumArrayStringBinary Search
Solve → 2369Avoid Flood in The CityMediumArrayHash TableBinary Search
Solve → 2370Car Fleet IIHardArrayMathStack
Solve → 2371Number of Same-End SubstringsMediumArrayHash TableString
Solve → 2372Smallest Range Covering Elements from K ListsHardArrayHash TableGreedy
Solve → 2373Check if DFS Strings Are PalindromesHardArrayHash TableString
Solve → 2374Adjacent Increasing Subarrays Detection IIMediumArrayBinary Search
Solve → 2375Two Best Non-Overlapping EventsMediumArrayBinary SearchDynamic Programming
Solve → 2376House Robber IVMediumArrayBinary SearchDynamic Programming
Solve → 2377Reschedule Meetings for Maximum Free Time IIMediumArrayGreedyEnumeration
Solve → 2378Find Minimum in Rotated Sorted Array IIHardArrayBinary Search
Solve → 2379Read N Characters Given read4 II - Call Multiple TimesHardArraySimulationInteractive
Solve → 2380Design Snake GameMediumArrayHash TableDesign
Solve → 2381Line ReflectionMediumArrayHash TableMath
Solve → 2382Range AdditionMediumArrayPrefix Sum
Solve → 2383Max Consecutive Ones IIMediumArrayDynamic ProgrammingSliding Window
Solve → 2384Design Compressed String IteratorEasyArrayStringDesign
Solve → 2385Sentence SimilarityEasyArrayHash TableString
Solve → 2386Search in a Sorted Array of Unknown SizeMediumArrayBinary SearchInteractive
Solve → 2387Largest Sum of AveragesMediumArrayDynamic ProgrammingPrefix Sum
Solve → 2388Linked List ComponentsMediumArrayHash TableLinked List
Solve → 2389Minimum Cost to Hire K WorkersHardArrayGreedySorting
Solve → 2390Delete Columns to Make Sorted IIIHardArrayStringDynamic Programming
Solve → 2391Best Sightseeing PairMediumArrayDynamic Programming
Solve → 2392Valid BoomerangEasyArrayMathGeometry
Solve → 2393Minimum Falling Path Sum IIHardArrayDynamic ProgrammingMatrix
Solve → 2394Sum of Mutated Array Closest to TargetMediumArrayBinary SearchSorting
Solve → 2395Pizza With 3n SlicesHardArrayDynamic ProgrammingGreedy
Solve → 2396Max Value of EquationHardArrayQueueSliding Window
Solve → 2397Last Moment Before All Ants Fall Out of a PlankMediumArrayBrainteaserSimulation
Solve → 2398Maximum Non Negative Product in a MatrixMediumArrayDynamic ProgrammingMatrix
Solve → 2399Minimum Adjacent Swaps for K Consecutive OnesHardArrayGreedySliding Window
Solve → 2400Queries on Number of Points Inside a CircleMediumArrayMathGeometry
Solve → 2401Merge Triplets to Form Target TripletMediumArrayGreedy
Solve → 2402Cutting RibbonsMediumArrayBinary Search
Solve → 2403Count Fertile Pyramids in a LandHardArrayDynamic ProgrammingMatrix
Solve → 2404Create Binary Tree From DescriptionsMediumArrayHash TableTree
Solve → 2405Most Frequent Number Following Key In an ArrayEasyArrayHash TableCounting
Solve → 2406Sum of Prefix Scores of StringsHardArrayStringTrie
Solve → 2407Determine if Two Events Have ConflictEasyArrayString
Solve → 2408Find the Number of Ways to Place People IIHardArrayMathGeometry
Solve → 2409Longest Common Suffix QueriesHardArrayStringTrie
Solve → 2410Construct Binary Tree from Inorder and Postorder TraversalMediumArrayHash TableDivide and Conquer
Solve → 2411Minimum Consecutive Cards to Pick UpMediumArrayHash TableSliding Window
Solve → 2412Longest Nice SubarrayMediumArrayBit ManipulationSliding Window
Solve → 2413Number of BoomerangsMediumArrayHash TableMath
Solve → 2414Longest Uncommon Subsequence IIMediumArrayHash TableTwo Pointers
Solve → 2415Beautiful ArrangementMediumArrayDynamic ProgrammingBacktracking
Solve → 2416Split Array into Consecutive SubsequencesMediumArrayHash TableGreedy
Solve → 2417Shortest Path to Get All KeysHardArrayBit ManipulationBreadth-First Search
Solve → 2418Spiral Matrix IIIMediumArrayMatrixSimulation
Solve → 2419Stone GameMediumArrayMathDynamic Programming
Solve → 2420Maximum Employees to Be Invited to a MeetingHardArrayDynamic ProgrammingDepth-First Search
Solve → 2421Maximum Matrix SumMediumArrayGreedyMatrix
Solve → 2422Partition Array According to Given PivotMediumArrayTwo PointersSimulation
Solve → 2423Solving Questions With BrainpowerMediumArrayDynamic Programming
Solve → 2424Maximum Erasure ValueMediumArrayHash TableSliding Window
Solve → 2425Divide an Array Into Subarrays With Minimum Cost IEasyArraySortingEnumeration
Solve → 2426Longest Balanced Subarray IIHardArrayHash TableDivide and Conquer
Solve → 2427Flatten 2D VectorMediumArrayTwo PointersDesign
Solve → 2428Zigzag IteratorMediumArrayDesignQueue
Solve → 2429Peeking IteratorMediumArrayDesignIterator
Solve → 2430Super Ugly NumberMediumArrayMathDynamic Programming
Solve → 2431Design Tic-Tac-ToeMediumArrayHash TableDesign
Solve → 2432The Maze IIMediumArrayDepth-First SearchBreadth-First Search
Solve → 2433Word AbbreviationHardArrayStringGreedy
Solve → 2434Longest Line of Consecutive One in MatrixMediumArrayDynamic ProgrammingMatrix
Solve → 2435Shopping OffersMediumArrayDynamic ProgrammingBacktracking
Solve → 2436Beautiful Arrangement IIMediumArrayMath
Solve → 2437K Empty SlotsHardArrayBinary Indexed TreeSegment Tree
Solve → 2438Shortest Completing WordEasyArrayHash TableString
Solve → 2439Find Anagram MappingsEasyArrayHash Table
Solve → 2440Bricks Falling When HitHardArrayUnion-FindMatrix
Solve → 2441Minimum Cost to Connect SticksMediumArrayGreedyHeap (Priority Queue)
Solve → 2442Divide ChocolateHardArrayBinary Search
Solve → 2443Mean of Array After Removing Some ElementsEasyArraySorting
Solve → 2444Element Appearing More Than 25% In Sorted ArrayEasyArray
Solve → 2445Decrease Elements To Make Array ZigzagMediumArrayGreedy
Solve → 2446Where Will the Ball FallMediumArrayMatrixSimulation
Solve → 2447Maximum Value of K Coins From PilesHardArrayDynamic ProgrammingPrefix Sum
Solve → 2448Find Two Non-overlapping Sub-arrays Each With Target SumMediumArrayHash TableBinary Search
Solve → 2449Number of Ways to Reorder Array to Get Same BSTHardArrayMathDivide and Conquer
Solve → 2450Strange Printer IIHardArrayGraph TheoryTopological Sort
Solve → 2451Minimum Cost to Connect Two Groups of PointsHardArrayDynamic ProgrammingBit Manipulation
Solve → 2452Distribute Repeating IntegersHardArrayHash TableDynamic Programming
Solve → 2453Max Number of K-Sum PairsMediumArrayHash TableTwo Pointers
Solve → 2454Minimum Operations to Make a SubsequenceHardArrayHash TableBinary Search
Solve → 2455Find Kth Largest XOR Coordinate ValueMediumArrayDivide and ConquerBit Manipulation
Solve → 2456Maximum Score from Performing Multiplication OperationsHardArrayDynamic Programming
Solve → 2457Design Most Recently Used QueueMediumArrayLinked ListDivide and Conquer
Solve → 2458Maximum Number of Groups Getting Fresh DonutsHardArrayDynamic ProgrammingBit Manipulation
Solve → 2459Minimum Path Cost in a Hidden GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 2460Kth Smallest Subarray SumMediumArrayBinary SearchSliding Window
Solve → 2461Last Day Where You Can Still CrossHardArrayBinary SearchDepth-First Search
Solve → 2462Operations on TreeMediumArrayHash TableTree
Solve → 2463Binary Searchable Numbers in an Unsorted ArrayMediumArrayBinary SearchStack
Solve → 2464Final Value of Variable After Performing OperationsEasyArrayStringSimulation
Solve → 2465Minimum Operations to Convert NumberMediumArrayBreadth-First Search
Solve → 2466Find All Lonely Numbers in the ArrayMediumArrayHash TableCounting
Solve → 2467Maximum AND Sum of ArrayHardArrayDynamic ProgrammingBit Manipulation
Solve → 2468Count Prefixes of a Given StringEasyArrayString
Solve → 2469Merge Similar ItemsEasyArrayHash TableSorting
Solve → 2470Finding the Number of Visible MountainsMediumArrayStackSorting
Solve → 2471Number of Pairs Satisfying InequalityHardArrayBinary SearchDivide and Conquer
Solve → 2472Increment Submatrices by OneMediumArrayMatrixPrefix Sum
Solve → 2473Sum of Imbalance Numbers of All SubarraysHardArrayHash TableEnumeration
Solve → 2474Minimum Absolute Difference Between Elements With ConstraintMediumArrayBinary SearchOrdered Set
Solve → 2475Sum of Digit Differences of All PairsMediumArrayHash TableMath
Solve → 2476Sum of Subarray RangesMediumArrayStackMonotonic Stack
Solve → 2477Strobogrammatic Number IIMediumArrayStringRecursion
Solve → 2478Meeting RoomsEasyArraySorting
Solve → 2479Design Phone DirectoryMediumArrayHash TableLinked List
Solve → 2480Erect the FenceHardArrayMathGeometry
Solve → 2481Add Bold Tag in StringMediumArrayHash TableString
Solve → 2482Hand of StraightsMediumArrayHash TableGreedy
Solve → 2483Profitable SchemesHardArrayDynamic Programming
Solve → 2484Maximum Length of Semi-Decreasing SubarraysMediumArrayStackSorting
Solve → 2485Last Stone WeightEasyArrayHeap (Priority Queue)
Solve → 2486Find Valid Matrix Given Row and Column SumsMediumArrayGreedyMatrix
Solve → 2487Number of Students Unable to Eat LunchEasyArrayStackQueue
Solve → 2488Find the Maximum Number of Elements in SubsetMediumArrayHash TableEnumeration
Solve → 2489Alternating Groups IIMediumArraySliding Window
Solve → 2490Finding 3-Digit Even NumbersEasyArrayHash TableRecursion
Solve → 2491Separate Squares IIHardArrayBinary SearchSegment Tree
Solve → 2492Number of Equivalent Domino PairsEasyArrayHash TableCounting
Solve → 2493Maximize Subarray GCD ScoreHardArrayMathEnumeration
Solve → 2494Left and Right Sum DifferencesEasyArrayPrefix Sum
Solve → 2495Fruits Into Baskets IIEasyArrayBinary SearchSegment Tree
Solve → 2496Unique Word AbbreviationMediumArrayHash TableString
Solve → 2497Bomb EnemyMediumArrayDynamic ProgrammingMatrix
Solve → 2498Minimum Unique Word AbbreviationHardArrayStringBacktracking
Solve → 2499Valid Word SquareEasyArrayMatrix
Solve → 2500Word SquaresHardArrayStringBacktracking
Solve → 2501Convex PolygonMediumArrayMathGeometry
Solve → 2502Find PermutationMediumArrayStringStack
Solve → 2503Count Subarrays With More Ones Than ZerosMediumArrayHash TableBinary Search
Solve → 2504Lonely Pixel IMediumArrayHash TableMatrix
Solve → 2505Lonely Pixel IIMediumArrayHash TableMatrix
Solve → 2506Maximum Vacation DaysHardArrayDynamic ProgrammingMatrix
Solve → 2507Maximum Average Subarray IIHardArrayBinary SearchPrefix Sum
Solve → 2508Coin PathHardArrayDynamic Programming
Solve → 2509Number of Longest Increasing SubsequenceMediumArrayDynamic ProgrammingBinary Indexed Tree
Solve → 2510Baseball GameEasyArrayStackSimulation
Solve → 2511Bold Words in StringMediumArrayHash TableString
Solve → 2512Transform to ChessboardHardArrayMathBit Manipulation
Solve → 2513Random Pick with BlacklistHardArrayHash TableMath
Solve → 2514Array of Doubled PairsMediumArrayHash TableGreedy
Solve → 2515Find the Town JudgeEasyArrayHash TableGraph Theory
Solve → 2516Campus Bikes IIMediumArrayDynamic ProgrammingBacktracking
Solve → 2517Camelcase MatchingMediumArrayTwo PointersString
Solve → 2518Divide Array Into Increasing SequencesHardArrayCounting
Solve → 2519Partition Array for Maximum SumMediumArrayDynamic Programming
Solve → 2520Shortest Distance to Target ColorMediumArrayBinary SearchDynamic Programming
Solve → 2521Minimum Time to Build BlocksHardArrayMathGreedy
Solve → 2522Largest Values From LabelsMediumArrayHash TableGreedy
Solve → 2523Compare Strings by Frequency of the Smallest CharacterMediumArrayHash TableString
Solve → 2524Distance Between Bus StopsEasyArray
Solve → 2525Maximum Font to Fit a Sentence in a ScreenMediumArrayStringBinary Search
Solve → 2526Minimum Path Cost in a GridMediumArrayDynamic ProgrammingMatrix
Solve → 2527Count Negative Numbers in a Sorted MatrixEasyArrayBinary SearchMatrix
Solve → 2528Diagonal Traverse IIMediumArraySortingHeap (Priority Queue)
Solve → 2529Form Largest Integer With Digits That Add up to TargetHardArrayDynamic Programming
Solve → 2530People Whose List of Favorite Companies Is Not a Subset of Another ListMediumArrayHash TableString
Solve → 2531The k Strongest Values in an ArrayMediumArrayTwo PointersSorting
Solve → 2532Maximum Number of Non-Overlapping Subarrays With Sum Equals TargetMediumArrayHash TableGreedy
Solve → 2533Guess the Majority in a Hidden ArrayMediumArrayMathInteractive
Solve → 2534Find Latest Group of Size MMediumArrayHash TableBinary Search
Solve → 2535The Most Similar Path in a GraphHardArrayStringDynamic Programming
Solve → 2536Put Boxes Into the Warehouse IMediumArrayGreedySorting
Solve → 2537Put Boxes Into the Warehouse IIMediumArrayGreedySorting
Solve → 2538Number of Ways to Form a Target String Given a DictionaryHardArrayStringDynamic Programming
Solve → 2539Largest Subarray Length KEasyArrayGreedy
Solve → 2540Tree of CoprimesHardArrayMathTree
Solve → 2541Closest Dessert CostMediumArrayDynamic ProgrammingBacktracking
Solve → 2542Minimum Number of Operations to Reinitialize a PermutationMediumArrayMathSimulation
Solve → 2543Minimum Speed to Arrive on TimeMediumArrayBinary Search
Solve → 2544Longest Word With All PrefixesMediumArrayStringDepth-First Search
Solve → 2545Minimum Skips to Arrive at Meeting On TimeHardArrayDynamic Programming
Solve → 2546Minimize Product Sum of Two ArraysMediumArrayGreedySorting
Solve → 2547Minimum Absolute Difference QueriesMediumArrayPrefix Sum
Solve → 2548Find a Peak Element IIMediumArrayBinary SearchMatrix
Solve → 2549Longest Common Subsequence Between Sorted ArraysMediumArrayHash TableCounting
Solve → 2550Erect the Fence IIHardArrayMathGeometry
Solve → 2551Watering Plants IIMediumArrayTwo PointersSimulation
Solve → 2552Recover the Original ArrayHardArrayHash TableTwo Pointers
Solve → 2553Count Words Obtained After Adding a LetterMediumArrayHash TableString
Solve → 2554All Divisions With the Highest Score of a Binary ArrayMediumArray
Solve → 2555Remove All Ones With Row and Column FlipsMediumArrayMathBit Manipulation
Solve → 2556Remove All Ones With Row and Column Flips IIMediumArrayBit ManipulationBreadth-First Search
Solve → 2557Check if There Is a Valid Parentheses String PathHardArrayDynamic ProgrammingMatrix
Solve → 2558Design an ATM MachineMediumArrayGreedyDesign
Solve → 2559Maximum White Tiles Covered by a CarpetMediumArrayBinary SearchGreedy
Solve → 2560Minimum Lines to Represent a Line ChartMediumArrayMathGeometry
Solve → 2561Count Positions on Street With Required BrightnessMediumArrayPrefix Sum
Solve → 2562Subarray With Elements Greater Than Varying ThresholdHardArrayStackUnion-Find
Solve → 2563Shortest Impossible Sequence of RollsHardArrayHash TableGreedy
Solve → 2564Sort Array by Moving Items to Empty SpaceHardArrayHash TableSorting
Solve → 2565Minimize Maximum Value in a GridHardArrayUnion-FindGraph Theory
Solve → 2566Count Subarrays With Median KHardArrayHash TablePrefix Sum
Solve → 2567Count Houses in a Circular StreetEasyArrayInteractive
Solve → 2568Count Pairs of Points With Distance kMediumArrayHash TableBit Manipulation
Solve → 2569Minimum Increment Operations to Make Array BeautifulMediumArrayDynamic Programming
Solve → 2570Find Champion IEasyArrayMatrix
Solve → 2571Count the Number of Good PartitionsHardArrayHash TableMath
Solve → 2572Number of Equal Numbers BlocksMediumArrayBinary SearchInteractive
Solve → 2573Minimum Cost to Make Array EqualindromicMediumArrayMathBinary Search
Solve → 2574Maximize Consecutive Elements in an Array After ModificationHardArrayDynamic ProgrammingSorting
Solve → 2575Most Frequent PrimeMediumArrayHash TableMath
Solve → 2576Minimum Sum of Values by Dividing ArrayHardArrayBinary SearchDynamic Programming
Solve → 2577Smallest Index With Equal ValueEasyArray
Solve → 2578Time Needed to Buy TicketsEasyArrayQueueSimulation
Solve → 2579Amount of New Area Painted Each DayHardArraySegment TreeOrdered Set
Solve → 2580K-diff Pairs in an ArrayMediumArrayHash TableTwo Pointers
Solve → 2581Minimize the Maximum Difference of PairsMediumArrayBinary SearchDynamic Programming
Solve → 2582Rabbits in ForestMediumArrayHash TableMath
Solve → 2583Fair Candy SwapEasyArrayHash TableBinary Search
Solve → 2584Reveal Cards In Increasing OrderMediumArrayQueueSorting
Solve → 2585Maximum Profit in Job SchedulingHardArrayBinary SearchDynamic Programming
Solve → 2586Maximize Total Cost of Alternating SubarraysMediumArrayDynamic Programming
Solve → 2587Shuffle StringEasyArrayString
Solve → 2588Find Smallest Letter Greater Than TargetEasyArrayBinary Search
Solve → 2589Final Prices With a Special Discount in a ShopEasyArrayStackMonotonic Stack
Solve → 2590Corporate Flight BookingsMediumArrayPrefix Sum
Solve → 2591Ant on the BoundaryEasyArraySimulationPrefix Sum
Solve → 2592Lemonade ChangeEasyArrayGreedy
Solve → 2593Last Stone Weight IIMediumArrayDynamic Programming
Solve → 2594Defuse the BombEasyArraySliding Window
Solve → 2595Maximum Area Rectangle With Point Constraints IMediumArrayMathBinary Indexed Tree
Solve → 2596Minimum Absolute DifferenceEasyArraySorting
Solve → 2597Number of Ways to Split ArrayMediumArrayPrefix Sum
Solve → 2598Shifting Letters IIMediumArrayStringPrefix Sum
Solve → 2599Minimum Time to Repair CarsMediumArrayBinary Search
Solve → 2600Find the Minimum Amount of Time to Brew PotionsMediumArraySimulationPrefix Sum
Solve → 2601Count Good TripletsEasyArrayEnumeration
Solve → 2602Find the Count of Monotonic Pairs IHardArrayMathDynamic Programming
Solve → 2603Kth Smallest Product of Two Sorted ArraysHardArrayBinary Search
Solve → 2604Count Cells in Overlapping Horizontal and Vertical SubstringsMediumArrayStringRolling Hash
Solve → 2605Number of Stable SubsequencesHardArrayDynamic Programming
Solve → 2606Count Caesar Cipher PairsMediumArrayHash TableMath
Solve → 2607Minimum Number of Arrows to Burst BalloonsMediumArrayGreedySorting
Solve → 2608Employee ImportanceMediumArrayHash TableTree
Solve → 2609Partition to K Equal Sum SubsetsMediumArrayDynamic ProgrammingBacktracking
Solve → 2610Construct Quad TreeMediumArrayDivide and ConquerTree
Solve → 2611Minimum Number of Refueling StopsHardArrayDynamic ProgrammingGreedy
Solve → 2612Min Cost to Connect All PointsMediumArrayUnion-FindGraph Theory
Solve → 2613Maximum Number of Events That Can Be Attended IIHardArrayBinary SearchDynamic Programming
Solve → 2614Find Unique Binary StringMediumArrayHash TableString
Solve → 2615Single Number IIIMediumArrayBit Manipulation
Solve → 2616Keyboard RowEasyArrayHash TableString
Solve → 2617Array PartitionEasyArrayGreedySorting
Solve → 2618Maximum Subsequence ScoreMediumArrayGreedySorting
Solve → 2619Valid Triangle NumberMediumArrayTwo PointersBinary Search
Solve → 2620Delete and EarnMediumArrayHash TableDynamic Programming
Solve → 2621Design HashMapEasyArrayHash TableLinked List
Solve → 2622Monotonic ArrayEasyArray
Solve → 2623Find the Shortest SuperstringHardArrayStringDynamic Programming
Solve → 2624Unique Paths IIIHardArrayBacktrackingBit Manipulation
Solve → 2625Find Common CharactersEasyArrayHash TableString
Solve → 2626Check If Array Pairs Are Divisible by kMediumArrayHash TableCounting
Solve → 2627Sort Array by Increasing FrequencyEasyArrayHash TableSorting
Solve → 2628Meeting SchedulerMediumArrayTwo PointersSorting
Solve → 2629Count Hills and Valleys in an ArrayEasyArray
Solve → 2630Combination Sum IIIMediumArrayBacktracking
Solve → 2631Bitwise ORs of SubarraysMediumArrayDynamic ProgrammingBit Manipulation
Solve → 2632Maximum Absolute Sum of Any SubarrayMediumArrayDynamic Programming
Solve → 2633Minimum Operations to Make Binary Array Elements Equal to One IMediumArrayBit ManipulationQueue
Solve → 2634Minimum Number of Flips to Make Binary Grid Palindromic IIMediumArrayTwo PointersMatrix
Solve → 2635Maximum Value of an Ordered Triplet IIMediumArray
Solve → 2636Longest Continuous Increasing SubsequenceEasyArray
Solve → 2637Subdomain Visit CountMediumArrayHash TableString
Solve → 2638N-Repeated Element in Size 2N ArrayEasyArrayHash Table
Solve → 2639Range Product Queries of PowersMediumArrayBit ManipulationPrefix Sum
Solve → 2640Maximize Alternating Sum Using SwapsHardArrayGreedyUnion-Find
Solve → 2641Split Array With Minimum DifferenceMediumArrayPrefix Sum
Solve → 2642Trionic Array IEasyArray
Solve → 2643Minimum Bitwise OR From GridMediumArrayGreedyBit Manipulation
Solve → 2644Shuffle an ArrayMediumArrayMathDesign
Solve → 2645Number of Submatrices That Sum to TargetHardArrayHash TableMatrix
Solve → 2646Minimum Number of Taps to Open to Water a GardenHardArrayDynamic ProgrammingGreedy
Solve → 2647Maximum Running Time of N ComputersHardArrayBinary SearchGreedy
Solve → 2648Cherry PickupHardArrayDynamic ProgrammingMatrix
Solve → 2649Design HashSetEasyArrayHash TableLinked List
Solve → 2650Minimum Number of K Consecutive Bit FlipsHardArrayBit ManipulationQueue
Solve → 2651Relative Sort ArrayEasyArrayHash TableSorting
Solve → 2652Matrix Diagonal SumEasyArrayMatrix
Solve → 2653Design Circular DequeMediumArrayLinked ListDesign
Solve → 2654Replace Elements with Greatest Element on Right SideEasyArray
Solve → 2655Minimum Moves to Equal Array ElementsMediumArrayMath
Solve → 2656XOR Queries of a SubarrayMediumArrayBit ManipulationPrefix Sum
Solve → 2657Make Sum Divisible by PMediumArrayHash TablePrefix Sum
Solve → 2658Minimum Time to Visit a Cell In a GridHardArrayBreadth-First SearchGraph Theory
Solve → 2659Remove BoxesHardArrayDynamic ProgrammingMemoization
Solve → 2660Find Minimum Time to Reach Last Room IMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 2661Maximum GapMediumArraySortingBucket Sort
Solve → 2662Rotating the BoxMediumArrayTwo PointersMatrix
Solve → 2663Maximum Product of Three NumbersEasyArrayMathSorting
Solve → 2664String Matching in an ArrayEasyArrayStringString Matching
Solve → 2665Count the Number of Good SubarraysMediumArrayHash TableSliding Window
Solve → 2666Shortest Subarray to be Removed to Make Array SortedMediumArrayTwo PointersBinary Search
Solve → 2667Insert Delete GetRandom O(1) - Duplicates allowedHardArrayHash TableMath
Solve → 2668Minimum Cost Walk in Weighted GraphHardArrayBit ManipulationUnion-Find
Solve → 2669Best Time to Buy and Sell Stock VMediumArrayDynamic Programming
Solve → 2670Minimum Increments to Equalize Leaf PathsMediumArrayDynamic ProgrammingTree
Solve → 2671Maximize Subarrays After Removing One Conflicting PairHardArraySegment TreeEnumeration
Solve → 2672Best Time to Buy and Sell Stock with Transaction FeeMediumArrayDynamic ProgrammingGreedy
Solve → 2673Smallest Subarrays With Maximum Bitwise ORMediumArrayBinary SearchBit Manipulation
Solve → 2674Rearranging FruitsHardArrayHash TableGreedy
Solve → 2675Threshold Majority QueriesHardArrayHash TableBinary Search
Solve → 2676Twisted Mirror Path CountMediumArrayDynamic ProgrammingMatrix
Solve → 2677Minimum Number of Operations to Make All Array Elements Equal to 1MediumArrayMathNumber Theory
Solve → 2678Largest Prime from Consecutive Prime SumMediumArrayMathNumber Theory
Solve → 2679Power Update After K-th Largest Insertion IMediumArrayHash TableMath
Solve → 2680Earliest Finish Time for Land and Water Rides IIMediumArrayTwo PointersBinary Search
Solve → 2681Battleships in a BoardMediumArrayDepth-First SearchMatrix
Solve → 2682IPOHardArrayGreedySorting
Solve → 2683Minimum Time Visiting All PointsEasyArrayMathGeometry
Solve → 2684Magnetic Force Between Two BallsMediumArrayBinary SearchSorting
Solve → 2685Maximum Difference Between Increasing ElementsEasyArray
Solve → 2686Extra Characters in a StringMediumArrayHash TableString
Solve → 2687Arithmetic SlicesMediumArrayDynamic ProgrammingSliding Window
Solve → 2688Maximum Length of Repeated SubarrayMediumArrayBinary SearchDynamic Programming
Solve → 2689Maximum Population YearEasyArrayCountingPrefix Sum
Solve → 2690The Number of the Smallest Unoccupied ChairMediumArrayHash TableHeap (Priority Queue)
Solve → 2691Count Number of Maximum Bitwise-OR SubsetsMediumArrayBacktrackingBit Manipulation
Solve → 2692Shortest Distance to a CharacterEasyArrayTwo PointersString
Solve → 2693Minimum Value to Get Positive Step by Step SumEasyArrayPrefix Sum
Solve → 2694Minimum Limit of Balls in a BagMediumArrayBinary Search
Solve → 2695Smallest String With SwapsMediumArrayHash TableString
Solve → 2696Take Gifts From the Richest PileEasyArrayHeap (Priority Queue)Simulation
Solve → 2697Maximum Average Pass RatioMediumArrayGreedyHeap (Priority Queue)
Solve → 2698Detect Cycles in 2D GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 2699First Completely Painted Row or ColumnMediumArrayHash TableMatrix
Solve → 2700Maximum Ascending Subarray SumEasyArray
Solve → 2701Construct the Lexicographically Largest Valid SequenceMediumArrayBacktracking
Solve → 2702Apply Operations to an ArrayEasyArrayTwo PointersSimulation
Solve → 2703Find the Minimum Cost Array PermutationHardArrayDynamic ProgrammingBit Manipulation
Solve → 2704Count the Number of Square-Free SubsetsMediumArrayMathDynamic Programming
Solve → 2705Count Equal and Divisible Pairs in an ArrayEasyArray
Solve → 2706Minimum Equal Sum of Two Arrays After Replacing ZerosMediumArrayGreedy
Solve → 2707Maximum Subarray Sum With Length Divisible by KMediumArrayHash TablePrefix Sum
Solve → 2708Largest Perimeter TriangleEasyArrayMathGreedy
Solve → 2709Find Words Containing CharacterEasyArrayString
Solve → 2710Paint House IIIHardArrayDynamic Programming
Solve → 2711Find the Minimum Area to Cover All Ones IMediumArrayMatrix
Solve → 2712Minimum Operations to Make Array Sum Divisible by KEasyArrayMath
Solve → 2713Minimize Maximum Pair Sum in ArrayMediumArrayTwo PointersGreedy
Solve → 2714Maximum Path Score in a GridMediumArrayDynamic ProgrammingMatrix
Solve → 27154Sum IIMediumArrayHash Table
Solve → 2716Design Browser HistoryMediumArrayLinked ListStack
Solve → 2717Find Greatest Common Divisor of ArrayEasyArrayMathNumber Theory
Solve → 2718Longest Palindrome by Concatenating Two Letter WordsMediumArrayHash TableString
Solve → 2719Find Closest Number to ZeroEasyArray
Solve → 2720Count Subarrays With Fixed BoundsHardArrayQueueSliding Window
Solve → 2721Minimum Common ValueEasyArrayHash TableTwo Pointers
Solve → 2722Contains Duplicate IIIHardArraySliding WindowSorting
Solve → 2723Equal Row and Column PairsMediumArrayHash TableMatrix
Solve → 2724Open the LockMediumArrayHash TableString
Solve → 2725Painting the WallsHardArrayDynamic Programming
Solve → 2726Sort Array By Parity IIEasyArrayTwo PointersSorting
Solve → 2727Find the Winner of the Circular GameMediumArrayMathRecursion
Solve → 2728Sum of All Subset XOR TotalsEasyArrayMathBacktracking
Solve → 2729Nearest Exit from Entrance in MazeMediumArrayBreadth-First SearchMatrix
Solve → 2730Minimum Cost to Convert String IMediumArrayStringGraph Theory
Solve → 2731Count Number of TeamsMediumArrayDynamic ProgrammingBinary Indexed Tree
Solve → 2732Maximum Distance in ArraysMediumArrayGreedy
Solve → 2733Minimum Moves to Equal Array Elements IIMediumArrayMathSorting
Solve → 2734Sort Integers by The Number of 1 BitsEasyArrayBit ManipulationSorting
Solve → 2735Determine Whether Matrix Can Be Obtained By RotationEasyArrayMatrix
Solve → 2736Next Greater Node In Linked ListMediumArrayLinked ListStack
Solve → 2737Identify the Largest Outlier in an ArrayMediumArrayHash TableCounting
Solve → 2738Adding Spaces to a StringMediumArrayTwo PointersString
Solve → 2739Bitwise XOR of All PairingsMediumArrayBit ManipulationBrainteaser
Solve → 2740Grid GameMediumArrayMatrixPrefix Sum
Solve → 2741Find the Number of Distinct Colors Among the BallsMediumArrayHash TableSimulation
Solve → 2742Degree of an ArrayEasyArrayHash Table
Solve → 2743Max Sum of a Pair With Equal Sum of DigitsMediumArrayHash TableSorting
Solve → 2744Jump Game VHardArrayDynamic ProgrammingSorting
Solve → 2745Number of Sub-arrays With Odd SumMediumArrayMathDynamic Programming
Solve → 2746Two Furthest Houses With Different ColorsEasyArrayGreedy
Solve → 2747Design Excel Sum FormulaHardArrayHash TableString
Solve → 2748Simple Bank SystemMediumArrayHash TableDesign
Solve → 2749Maximum Units on a TruckEasyArrayGreedySorting
Solve → 2750Count Complete Subarrays in an ArrayMediumArrayHash TableSliding Window
Solve → 2751Get the Maximum ScoreHardArrayTwo PointersDynamic Programming
Solve → 2752Rotate FunctionMediumArrayMathDynamic Programming
Solve → 2753Maximum Students Taking ExamHardArrayDynamic ProgrammingBit Manipulation
Solve → 2754Find Subsequence of Length K With the Largest SumEasyArrayHash TableSorting
Solve → 2755Find Lucky Integer in an ArrayEasyArrayHash TableCounting
Solve → 2756Maximum Fruits Harvested After at Most K StepsHardArrayBinary SearchSliding Window
Solve → 2757Minimum Operations to Make Array Elements ZeroHardArrayMathBit Manipulation
Solve → 2758The Two Sneaky Numbers of DigitvilleEasyArrayHash TableMath
Solve → 2759Find Resultant Array After Removing AnagramsEasyArrayHash TableString
Solve → 2760Reshape the MatrixEasyArrayMatrixSimulation
Solve → 2761Check If All 1's Are at Least Length K Places AwayEasyArray
Solve → 2762Keep Multiplying Found Values by TwoEasyArrayHash TableSorting
Solve → 2763Set Intersection Size At Least TwoHardArrayGreedySorting
Solve → 2764Count Covered BuildingsMediumArrayHash TableSorting
Solve → 2765Four DivisorsMediumArrayMath
Solve → 2766Max Dot Product of Two SubsequencesHardArrayDynamic Programming
Solve → 2767Trionic Array IIHardArrayDynamic Programming
Solve → 2768Maximum Score From Grid OperationsHardArrayDynamic ProgrammingMatrix
Solve → 2769Minimum Initial Energy to Finish TasksHardArrayGreedySorting
Solve → 2770Block Placement QueriesHardArrayBinary SearchBinary Indexed Tree
Solve → 2771Teemo AttackingEasyArraySimulation
Solve → 2772Brick WallMediumArrayHash Table
Solve → 2773Most Common WordEasyArrayHash TableString
Solve → 2774Validate Stack SequencesMediumArrayStackSimulation
Solve → 2775Minimum Score Triangulation of PolygonMediumArrayDynamic Programming
Solve → 2776Minimum Cost Tree From Leaf ValuesMediumArrayDynamic ProgrammingStack
Solve → 2777Three Consecutive OddsEasyArray
Solve → 2778Maximum Number of Visible PointsHardArrayMathGeometry
Solve → 2779Minimum Difference Between Highest and Lowest of K ScoresEasyArraySliding WindowSorting
Solve → 2780Minimum Number of Operations to Make Array ContinuousHardArrayHash TableBinary Search
Solve → 2781Minimized Maximum of Products Distributed to Any StoreMediumArrayBinary SearchGreedy
Solve → 2782Escape the Spreading FireHardArrayBinary SearchBreadth-First Search
Solve → 2783Minimum Replacements to Sort the ArrayHardArrayMathGreedy
Solve → 2784Count Pairs Whose Sum is Less than TargetEasyArrayTwo PointersBinary Search
Solve → 2785Jump Game VIMediumArrayDynamic ProgrammingQueue
Solve → 2786Number of Senior CitizensEasyArrayString
Solve → 2787Stone Game IIMediumArrayMathDynamic Programming
Solve → 2788Count Elements With Maximum FrequencyEasyArrayHash TableCounting
Solve → 2789Find the Student that Will Replace the ChalkMediumArrayBinary SearchSimulation
Solve → 2790Sort the PeopleEasyArrayHash TableString
Solve → 2791Reach End of Array With Max ScoreMediumArrayGreedy
Solve → 2792Count the Number of Consistent StringsEasyArrayHash TableString
Solve → 2793Number of Distinct IslandsMediumArrayHash TableDepth-First Search
Solve → 2794Longest Subarray With Maximum Bitwise ANDMediumArrayBit ManipulationBrainteaser
Solve → 2795Taking Maximum Energy From the Mystic DungeonMediumArrayDynamic ProgrammingPrefix Sum
Solve → 2796Maximum Height by Stacking CuboidsHardArrayDynamic ProgrammingSorting
Solve → 2797Maximum Sum of Subsequence With Non-adjacent ElementsHardArrayDivide and ConquerDynamic Programming
Solve → 2798Minimum Number of Removals to Make Mountain ArrayHardArrayBinary SearchDynamic Programming
Solve → 2799Minimum Total Distance TraveledHardArrayDynamic ProgrammingSorting
Solve → 2800Flip Columns For Maximum Number of Equal RowsMediumArrayHash TableMatrix
Solve → 2801Count Unguarded Cells in the GridMediumArrayMatrixSimulation
Solve → 2802Maximize Subarray Sum After Removing All Occurrences of One ElementHardArrayHash TableDivide and Conquer
Solve → 2803Count of Interesting SubarraysMediumArrayHash TablePrefix Sum
Solve → 2804Maximum Frequency After Subarray OperationMediumArrayHash TableDynamic Programming
Solve → 2805Longest Strictly Increasing or Strictly Decreasing SubarrayEasyArray
Solve → 2806Maximum Total Damage With Spell CastingMediumArrayHash TableTwo Pointers
Solve → 2807Sum of DistancesMediumArrayHash TablePrefix Sum
Solve → 2808Length of Longest Fibonacci SubsequenceMediumArrayHash TableDynamic Programming
Solve → 2809Apply Operations to Maximize ScoreHardArrayMathStack
Solve → 2810Put Marbles in BagsHardArrayGreedySorting
Solve → 2811Minimum Operations to Make Array Values Equal to KEasyArrayHash Table
Solve → 2812Count Good Triplets in an ArrayHardArrayBinary SearchDivide and Conquer
Solve → 2813Process Tasks Using ServersMediumArrayHeap (Priority Queue)
Solve → 2814Available Captures for RookEasyArrayMatrixSimulation
Solve → 2815Count Subarrays Where Max Element Appears at Least K TimesMediumArraySliding Window
Solve → 2816Finding Pairs With a Certain SumMediumArrayHash TableDesign
Solve → 2817Add to Array-Form of IntegerEasyArrayMath
Solve → 2818Count Partitions With Max-Min Difference at Most KMediumArrayDynamic ProgrammingQueue
Solve → 2819Maximum Unique Subarray Sum After DeletionEasyArrayHash TableGreedy
Solve → 2820Fruits Into Baskets IIIMediumArrayBinary SearchSegment Tree
Solve → 2821Invalid TransactionsMediumArrayHash TableString
Solve → 2822Sort Matrix by DiagonalsMediumArraySortingMatrix
Solve → 2823Minimum Number of People to TeachMediumArrayHash TableGreedy
Solve → 2824Replace Non-Coprime Numbers in ArrayHardArrayMathStack
Solve → 2825Power Grid MaintenanceMediumArrayHash TableDepth-First Search
Solve → 2826Maximize the Minimum Powered CityHardArrayBinary SearchGreedy
Solve → 2827Minimum Operations to Convert All Elements to ZeroMediumArrayHash TableStack
Solve → 28281-bit and 2-bit CharactersEasyArray
Solve → 2829Greatest Sum Divisible by ThreeMediumArrayDynamic ProgrammingGreedy
Solve → 2830Count Special TripletsMediumArrayHash TableCounting
Solve → 2831Number of Smooth Descent Periods of a StockMediumArrayMathTwo Pointers
Solve → 2832Find Missing ElementsEasyArrayHash TableSorting
Solve → 2833Tallest BillboardHardArrayDynamic Programming
Solve → 2834Maximum Square Area by Removing Fences From a FieldMediumArrayHash TableEnumeration
Solve → 2835Minimum Removals to Balance ArrayMediumArrayBinary SearchSliding Window
Solve → 2836Jump Game IXMediumArrayDynamic Programming
Solve → 2837Minimum Jumps to Reach End via Prime TeleportationMediumArrayHash TableMath
Solve → 2838Minimum Moves to Make Array ComplementaryMediumArrayHash TablePrefix Sum
Solve → 2839Check if Array is GoodEasyArrayHash TableSorting
Solve → 2840Earliest Finish Time for Land and Water Rides IEasyArrayTwo PointersBinary Search
Solve → 2841Number of Ways to Assign Edge Weights IIHardArrayMathDynamic Programming
Solve → 2842Find Right IntervalMediumArrayBinary SearchSorting
Solve → 2843MinesweeperMediumArrayDepth-First SearchBreadth-First Search
Solve → 2844Constrained Subsequence SumHardArrayDynamic ProgrammingQueue
Solve → 2845Delete Duplicate Folders in SystemHardArrayHash TableString
Solve → 2846Count Number of Pairs With Absolute Difference KEasyArrayHash TableCounting
Solve → 2847Most Frequent Even ElementEasyArrayHash TableCounting
Solve → 2848Design a Food Rating SystemMediumArrayHash TableString
Solve → 2849Arithmetic Slices II - SubsequenceHardArrayDynamic Programming
Solve → 2850Number of Lines To Write StringEasyArrayString
Solve → 2851Most Profit Assigning WorkMediumArrayTwo PointersBinary Search
Solve → 2852Rectangle Area IIHardArraySegment TreeSweep Line
Solve → 2853Verifying an Alien DictionaryEasyArrayHash TableString
Solve → 2854Satisfiability of Equality EquationsMediumArrayStringUnion-Find
Solve → 2855Check If It Is a Good ArrayHardArrayMathNumber Theory
Solve → 2856Widest Vertical Area Between Two Points Containing No PointsEasyArraySorting
Solve → 2857Check if the Rectangle Corner Is ReachableHardArrayMathDepth-First Search
Solve → 2858Count Sub IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 2859Find Minimum Operations to Make All Elements Divisible by ThreeEasyArrayMath
Solve → 2860Find Winner on a Tic Tac Toe GameEasyArrayHash TableMatrix
Solve → 2861Pairs of Songs With Total Durations Divisible by 60MediumArrayHash TableCounting
Solve → 2862Find a Safe Walk Through a GridMediumArrayBreadth-First SearchGraph Theory
Solve → 2863Divide Intervals Into Minimum Number of GroupsMediumArrayTwo PointersGreedy
Solve → 2864Two City SchedulingMediumArrayGreedySorting
Solve → 2865Best Meeting PointHardArrayMathSorting
Solve → 2866Largest Combination With Bitwise AND Greater Than ZeroMediumArrayHash TableBit Manipulation
Solve → 2867Shortest Subarray With OR at Least K IIMediumArrayBit ManipulationSliding Window
Solve → 2868Most Beautiful Item for Each QueryMediumArrayBinary SearchSorting
Solve → 2869Find the Power of K-Size Subarrays IMediumArraySliding Window
Solve → 2870Shortest Distance After Road Addition Queries IMediumArrayBreadth-First SearchGraph Theory
Solve → 2871Find Score of an Array After Marking All ElementsMediumArrayHash TableSorting
Solve → 2872Maximum Coins From K Consecutive BagsMediumArrayBinary SearchGreedy
Solve → 2873Coloring A BorderMediumArrayDepth-First SearchBreadth-First Search
Solve → 2874Row With Maximum OnesEasyArrayMatrix
Solve → 2875Analyze User Website Visit PatternMediumArrayHash TableString
Solve → 2876Max Pair Sum in an ArrayEasyArrayHash Table
Solve → 2877Find Good Days to Rob the BankMediumArrayDynamic ProgrammingPrefix Sum
Solve → 2878Maximum Product of Two Elements in an ArrayEasyArraySortingHeap (Priority Queue)
Solve → 2879Minimum Operations to Make the Array IncreasingEasyArrayGreedy
Solve → 2880Minimum Time to Complete TripsMediumArrayBinary Search
Solve → 2881Sum of Unique ElementsEasyArrayHash TableCounting
Solve → 2882Minimum Number GameEasyArraySortingHeap (Priority Queue)
Solve → 2883Find Indices of Stable MountainsEasyArray
Solve → 2884Divide Array Into Equal PairsEasyArrayHash TableBit Manipulation
Solve → 2885Minimum Operations to Make a Uni-Value GridMediumArrayMathSorting
Solve → 2886Minimum Index of a Valid SplitMediumArrayHash TableSorting
Solve → 2887Maximum Number of Points From Grid QueriesHardArrayTwo PointersBreadth-First Search
Solve → 2888Maximum Value of an Ordered Triplet IEasyArray
Solve → 2889Find the String with LCPHardArrayStringDynamic Programming
Solve → 2890Check if Matrix Is X-MatrixEasyArrayMatrix
Solve → 2891Make Array Non-decreasingMediumArrayStackGreedy
Solve → 2892Count the Hidden SequencesMediumArrayPrefix Sum
Solve → 2893Minimum Swaps to Sort by Digit SumMediumArrayHash TableSorting
Solve → 2894Maximum Difference Between Adjacent Elements in a Circular ArrayEasyArray
Solve → 2895Find Weighted Median Node in TreeHardArrayBinary SearchDynamic Programming
Solve → 2896Number of Squareful ArraysHardArrayHash TableMath
Solve → 2897Matchsticks to SquareMediumArrayDynamic ProgrammingBacktracking
Solve → 2898Minimum Difference in Sums After Removal of ElementsHardArrayDynamic ProgrammingHeap (Priority Queue)
Solve → 2899Find Common Elements Between Two ArraysEasyArrayHash Table
Solve → 2900Maximum Subarray With Equal ProductsEasyArrayMathSliding Window
Solve → 2901Vowel SpellcheckerMediumArrayHash TableString
Solve → 2902Subsequence Sum After Capping ElementsMediumArrayTwo PointersDynamic Programming
Solve → 2903Design SpreadsheetMediumArrayHash TableString
Solve → 2904Minimum Moves to Move a Box to Their Target LocationHardArrayBreadth-First SearchHeap (Priority Queue)
Solve → 2905Successful Pairs of Spells and PotionsMediumArrayTwo PointersBinary Search
Solve → 2906Minimum Cost to Reach Destination in TimeHardArrayDynamic ProgrammingGraph Theory
Solve → 2907Make Array Elements Equal to ZeroEasyArraySimulationPrefix Sum
Solve → 2908Find and Replace PatternMediumArrayHash TableString
Solve → 2909Largest Magic SquareMediumArrayMatrixPrefix Sum
Solve → 2910Find X-Sum of All K-Long Subarrays IIHardArrayHash TableSliding Window
Solve → 2911Count Partitions with Even Sum DifferenceEasyArrayMathPrefix Sum
Solve → 2912Count the Number of Computer Unlocking PermutationsMediumArrayMathBrainteaser
Solve → 2913Apple Redistribution into BoxesEasyArrayGreedySorting
Solve → 2914Find Words That Can Be Formed by CharactersEasyArrayHash TableString
Solve → 2915Find Players With Zero or One LossesMediumArrayHash TableSorting
Solve → 2916Minimum Cost Path with TeleportationsHardArrayDynamic ProgrammingMatrix
Solve → 2917Maximize Cyclic Partition ScoreHardArrayDynamic Programming
Solve → 2918Minimum Deletions to Make Array DivisibleHardArrayMathSorting
Solve → 2919Get Biggest Three Rhombus Sums in a GridMediumArrayMathSorting
Solve → 2920Count Submatrices with Top-Left Element and Sum Less Than kMediumArrayMatrixPrefix Sum
Solve → 2921Minimum Absolute Difference in Sliding SubmatrixMediumArraySortingMatrix
Solve → 2922Equal Sum Grid Partition IMediumArrayMatrixEnumeration
Solve → 2923Equal Sum Grid Partition IIHardArrayHash TableMatrix
Solve → 2924Maximize the Distance Between Points on a SquareHardArrayMathBinary Search
Solve → 2925Separate the Digits in an ArrayEasyArraySimulation
Solve → 2926Read N Characters Given Read4EasyArraySimulationInteractive
Solve → 2927Range Sum Query - MutableMediumArrayDivide and ConquerDesign
Solve → 2928Remove CommentsMediumArrayString
Solve → 2929The K Weakest Rows in a MatrixEasyArrayBinary SearchSorting
Solve → 2930Check If Two String Arrays are EquivalentEasyArrayString
Solve → 2931Maximum Number of Accepted InvitationsMediumArrayDepth-First SearchGraph Theory
Solve → 2932Minimum Cost to Make Array EqualHardArrayBinary SearchGreedy
Solve → 2933Maximum Length of Pair ChainMediumArrayDynamic ProgrammingGreedy
Solve → 2934Robot CollisionsHardArrayStackSorting
Solve → 2935Max Increase to Keep City SkylineMediumArrayGreedyMatrix
Solve → 2936Score After Flipping MatrixMediumArrayGreedyBit Manipulation
Solve → 2937Minimum Increment to Make Array UniqueMediumArrayGreedySorting
Solve → 2938Height CheckerEasyArraySortingCounting Sort
Solve → 2939Find the Maximum Sum of Node ValuesHardArrayDynamic ProgrammingGreedy
Solve → 2940Maximum Score Words Formed by LettersHardArrayHash TableString
Solve → 2941Verbal Arithmetic PuzzleHardArrayMathString
Solve → 2942Maximum Performance of a TeamHardArrayGreedySorting
Solve → 2943Subrectangle QueriesMediumArrayDesignMatrix
Solve → 2944Minimum Swaps to Group All 1's Together IIMediumArraySliding Window
Solve → 2945Spiral Matrix IVMediumArrayLinked ListMatrix
Solve → 2946Restore the Array From Adjacent PairsMediumArrayHash TableDepth-First Search
Solve → 2947Super Washing MachinesHardArrayGreedy
Solve → 2948Maximum Subarray Sum with One DeletionMediumArrayDynamic Programming
Solve → 2949Chalkboard XOR GameHardArrayMathBit Manipulation
Solve → 2950Make Array Non-decreasing or Non-increasingHardArrayDynamic ProgrammingGreedy
Solve → 2951Create Target Array in the Given OrderEasyArraySimulation
Solve → 2952Maximum Number of Moves in a GridMediumArrayDynamic ProgrammingMatrix
Solve → 2953Dot Product of Two Sparse VectorsMediumArrayHash TableTwo Pointers
Solve → 2954Sliding PuzzleHardArrayDynamic ProgrammingBacktracking
Solve → 2955Find the Middle Index in ArrayEasyArrayPrefix Sum
Solve → 2956Maximum Possible Number by Binary ConcatenationMediumArrayBit ManipulationEnumeration
Solve → 2957Find Building Where Alice and Bob Can MeetHardArrayBinary SearchStack
Solve → 2958Find Triangular Sum of an ArrayMediumArrayMathSimulation
Solve → 2959Ways to Split Array Into Three SubarraysMediumArrayTwo PointersBinary Search
Solve → 2960Count Items Matching a RuleEasyArrayString
Solve → 2961Find the Distance Value Between Two ArraysEasyArrayTwo PointersBinary Search
Solve → 2962Uncrossed LinesMediumArrayDynamic Programming
Solve → 2963Maximum Number of Fish in a GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 2964Maximum Distance Between a Pair of ValuesMediumArrayTwo PointersBinary Search
Solve → 2965Minimum Operations to Exceed Threshold Value IIMediumArrayHeap (Priority Queue)Simulation
Solve → 2966Length of Longest V-Shaped Diagonal SegmentHardArrayDynamic ProgrammingMemoization
Solve → 2967Maximum Subarray Min-ProductMediumArrayStackMonotonic Stack
Solve → 2968Number of Distinct Islands IIHardArrayHash TableDepth-First Search
Solve → 2969Longest Non-decreasing Subarray From Two ArraysMediumArrayDynamic Programming
Solve → 2970Find the Divisibility Array of a StringMediumArrayMathString
Solve → 2971Shifting LettersMediumArrayStringPrefix Sum
Solve → 2972Minimum Number of Operations to Make Elements in Array DistinctEasyArrayHash Table
Solve → 2973Longest Special Path IIHardArrayHash TableTree
Solve → 2974Buildings With an Ocean ViewMediumArrayStackMonotonic Stack
Solve → 2975Missing Element in Sorted ArrayMediumArrayBinary Search
Solve → 2976Maximum Number of Tasks You Can AssignHardArrayTwo PointersBinary Search
Solve → 2977Stone Game VIIMediumArrayMathDynamic Programming
Solve → 2978Number of Subarrays with Bounded MaximumMediumArrayTwo Pointers
Solve → 2979Delete Greatest Value in Each RowEasyArraySortingHeap (Priority Queue)
Solve → 2980Maximum Candies You Can Get from BoxesHardArrayBreadth-First SearchGraph Theory
Solve → 29813Sum With MultiplicityMediumArrayHash TableTwo Pointers
Solve → 2982Make the XOR of All Segments Equal to ZeroHardArrayHash TableDynamic Programming
Solve → 2983Count Special QuadrupletsEasyArrayHash TableEnumeration
Solve → 2984Unique 3-Digit Even NumbersEasyArrayHash TableRecursion
Solve → 2985Card Flipping GameMediumArrayHash Table
Solve → 2986Find Nearest Point That Has the Same X or Y CoordinateEasyArray
Solve → 2987Shortest Word Distance IIMediumArrayHash TableTwo Pointers
Solve → 2988Partition Array Such That Maximum Difference Is KMediumArrayGreedySorting
Solve → 2989Longest Subsequence With Limited SumEasyArrayBinary SearchGreedy
Solve → 2990Closest Subsequence SumHardArrayTwo PointersDynamic Programming
Solve → 2991Sum of Absolute Differences in a Sorted ArrayMediumArrayMathPrefix Sum
Solve → 2992Sum of All Odd Length SubarraysEasyArrayMathPrefix Sum
Solve → 2993Reducing DishesHardArrayDynamic ProgrammingGreedy
Solve → 2994Split the ArrayEasyArrayHash TableCounting
Solve → 2995Maximum Matching of Players With TrainersMediumArrayTwo PointersGreedy
Solve → 2996Task Scheduler IIMediumArrayHash TableSimulation
Solve → 2997Zigzag Grid Traversal With SkipEasyArrayMatrixSimulation
Solve → 2998Partition Array for Maximum XOR and ANDHardArrayMathGreedy
Solve → 2999Find the Maximum Number of Fruits CollectedHardArrayDynamic ProgrammingMatrix
Solve → 3000Collect Coins in a TreeHardArrayTreeGraph Theory
Solve → 3001Allocate MailboxesHardArrayMathDynamic Programming
Solve → 3002Find the Minimum Area to Cover All Ones IIHardArrayMatrixEnumeration
Solve → 3003Maximum Area of Longest Diagonal RectangleEasyArray
Solve → 3004Smallest Missing Integer Greater Than Sequential Prefix SumEasyArrayHash TableSorting
Solve → 3005Count Bowl SubarraysMediumArrayStackMonotonic Stack
Solve → 3006Find the Number of Winning PlayersEasyArrayHash TableCounting
Solve → 3007Implement RouterMediumArrayHash TableBinary Search
Solve → 3008Path Existence Queries in a Graph IIHardArrayTwo PointersBinary Search
Solve → 3009Minimum Difficulty of a Job ScheduleHardArrayDynamic Programming
Solve → 3010Find Minimum Time to Finish All JobsHardArrayDynamic ProgrammingBacktracking
Solve → 3011Maximum Count of Positive Integer and Negative IntegerEasyArrayBinary SearchCounting
Solve → 3012Candy CrushMediumArrayTwo PointersMatrix
Solve → 3013Best Team With No ConflictsMediumArrayDynamic ProgrammingSorting
Solve → 3014Coupon Code ValidatorEasyArrayHash TableString
Solve → 3015Maximum Profit from Trading Stocks with DiscountsHardArrayDynamic ProgrammingTree
Solve → 3016Two-Letter Card GameMediumArrayHash TableString
Solve → 3017Difference Between Element Sum and Digit Sum of an ArrayEasyArrayMath
Solve → 3018Longest Turbulent SubarrayMediumArrayDynamic ProgrammingSliding Window
Solve → 3019Maximize Area of Square Hole in GridMediumArraySorting
Solve → 3020Construct the Minimum Bitwise Array IEasyArrayBit Manipulation
Solve → 3021Divide an Array Into Subarrays With Minimum Cost IIHardArrayHash TableSliding Window
Solve → 3022Smallest Range IEasyArrayMath
Solve → 3023Apply Operations to Maximize Frequency ScoreHardArrayBinary SearchSliding Window
Solve → 3024Minimum Processing TimeMediumArrayGreedySorting
Solve → 3025Flip Square Submatrix VerticallyEasyArrayTwo PointersMatrix
Solve → 3026Construct Uniform Parity Array IEasyArrayMath
Solve → 3027Maximum Amount of Money Robot Can EarnMediumArrayDynamic ProgrammingMatrix
Solve → 3028Walking Robot SimulationMediumArrayHash TableSimulation
Solve → 3029Minimum Operations to Transform Array into Alternating PrimeMediumArrayMathTwo Pointers
Solve → 3030Closest Equal Element QueriesMediumArrayHash TableBinary Search
Solve → 3031Minimum Absolute Distance Between Mirror PairsMediumArrayHash TableMath
Solve → 3032Apply Operations to Make All Array Elements Equal to ZeroMediumArrayPrefix Sum
Solve → 3033Cyclically Rotating a GridMediumArrayMatrixSimulation
Solve → 3034Sum of Variable Length SubarraysEasyArrayPrefix Sum
Solve → 3035Minimum Element After Replacement With Digit SumEasyArrayMath
Solve → 3036Maximum Total Subarray Value IMediumArrayGreedy
Solve → 3037Paint HouseMediumArrayDynamic Programming
Solve → 3038Find Duplicate File in SystemMediumArrayHash TableString
Solve → 3039Stickers to Spell WordHardArrayHash TableString
Solve → 3040Binary Trees With FactorsMediumArrayHash TableDynamic Programming
Solve → 3041Maximize Sum Of Array After K NegationsEasyArrayGreedySorting
Solve → 3042Count Nice Pairs in an ArrayMediumArrayHash TableMath
Solve → 3043Minimum Sideway JumpsMediumArrayDynamic ProgrammingGreedy
Solve → 3044Check if There is a Valid Partition For The ArrayMediumArrayDynamic Programming
Solve → 3045Most Profitable Path in a TreeMediumArrayTreeDepth-First Search
Solve → 3046Minimum Time to Complete All TasksHardArrayBinary SearchStack
Solve → 3047The Number of Beautiful SubsetsMediumArrayHash TableMath
Solve → 3048Convert an Array Into a 2D Array With ConditionsMediumArrayHash Table
Solve → 3049Length of Longest Subarray With at Most K FrequencyMediumArrayHash TableSliding Window
Solve → 3050Right TrianglesMediumArrayHash TableMath
Solve → 3051Number of Arithmetic TripletsEasyArrayHash TableTwo Pointers
Solve → 3052Largest Positive Integer That Exists With Its NegativeEasyArrayHash TableTwo Pointers
Solve → 3053Replace WordsMediumArrayHash TableString
Solve → 3054Find Maximum Non-decreasing Array LengthHardArrayBinary SearchDynamic Programming
Solve → 3055Count the Number of InversionsHardArrayDynamic Programming
Solve → 3056Count Triplets That Can Form Two Arrays of Equal XORMediumArrayHash TableMath
Solve → 3057Least Number of Unique Integers after K RemovalsMediumArrayHash TableGreedy
Solve → 3058Average Waiting TimeMediumArraySimulation
Solve → 3059Alternating Groups IEasyArraySliding Window
Solve → 3060Kth Distinct String in an ArrayEasyArrayHash TableString
Solve → 3061Prefix and Suffix SearchHardArrayHash TableString
Solve → 3062Minimum Number of Days to Disconnect IslandHardArrayDepth-First SearchBreadth-First Search
Solve → 3063Minimum Operations to Make Array Equal to TargetHardArrayDynamic ProgrammingStack
Solve → 3064Maximum XOR Score Subarray QueriesHardArrayDynamic Programming
Solve → 3065Find Missing ObservationsMediumArrayMathSimulation
Solve → 3066K-th Nearest Obstacle QueriesMediumArrayHeap (Priority Queue)
Solve → 3067Distinct Prime Factors of Product of ArrayMediumArrayHash TableMath
Solve → 3068Sorted GCD Pair QueriesHardArrayHash TableMath
Solve → 3069Snake in MatrixEasyArrayStringSimulation
Solve → 3070Projection Area of 3D ShapesEasyArrayMathGeometry
Solve → 3071Maximal Score After Applying K OperationsMediumArrayGreedyHeap (Priority Queue)
Solve → 3072Maximum Number of Moves to Kill All PawnsHardArrayMathBit Manipulation
Solve → 3073Minimum Division Operations to Make Array Non DecreasingMediumArrayMathGreedy
Solve → 3074Longest Square Streak in an ArrayMediumArrayHash TableBinary Search
Solve → 3075Find if Array Can Be SortedMediumArrayBit ManipulationSorting
Solve → 3076Minimum Array Changes to Make Differences EqualMediumArrayHash TablePrefix Sum
Solve → 3077Maximum Size Subarray Sum Equals kMediumArrayHash TablePrefix Sum
Solve → 3078Sparse Matrix MultiplicationMediumArrayHash TableMatrix
Solve → 3079Maximum Star Sum of a GraphMediumArrayGreedyGraph Theory
Solve → 3080Find Maximum Removals From Source StringMediumArrayHash TableTwo Pointers
Solve → 3081Maximize Amount After Two Days of ConversionsMediumArrayStringDepth-First Search
Solve → 3082Cells with Odd Values in a MatrixEasyArrayMathSimulation
Solve → 3083Count Prefix and Suffix Pairs IEasyArrayStringTrie
Solve → 3084Neighboring Bitwise XORMediumArrayBit Manipulation
Solve → 3085Make Lexicographically Smallest Array by Swapping ElementsMediumArrayUnion-FindSorting
Solve → 3086Longest Subsequence With Decreasing Adjacent DifferenceMediumArrayDynamic Programming
Solve → 3087Check Knight Tour ConfigurationMediumArrayDepth-First SearchBreadth-First Search
Solve → 3088Find the XOR of Numbers Which Appear TwiceEasyArrayHash TableBit Manipulation
Solve → 3089Minimum Amount of Time to Fill CupsEasyArrayGreedySorting
Solve → 3090Find the Number of Copy ArraysMediumArrayMath
Solve → 3091Maximum Alternating Subsequence SumMediumArrayDynamic Programming
Solve → 3092Count Vowel Strings in RangesMediumArrayStringPrefix Sum
Solve → 3093Smallest Substring With Identical Characters IHardArrayBinary SearchEnumeration
Solve → 3094Count Pairs That Form a Complete Day IIMediumArrayHash TableCounting
Solve → 3095Movement of RobotsMediumArrayBrainteaserSorting
Solve → 3096Contain VirusHardArrayDepth-First SearchBreadth-First Search
Solve → 3097Zero Array Transformation IVMediumArrayDynamic Programming
Solve → 3098Encrypt and Decrypt StringsHardArrayHash TableString
Solve → 3099Final Array State After K Multiplication Operations IEasyArrayMathHeap (Priority Queue)
Solve → 3100Closest Node to Path in TreeHardArrayTreeDepth-First Search
Solve → 3101Minimize Malware SpreadHardArrayHash TableDepth-First Search
Solve → 3102Minimum Cost to Make Arrays IdenticalMediumArrayGreedySorting
Solve → 3103Count Subarrays of Length Three With a ConditionEasyArray
Solve → 3104Prime In DiagonalEasyArrayMathMatrix
Solve → 3105Length of the Longest Valid SubstringHardArrayHash TableString
Solve → 3106Merge Operations for Minimum Travel TimeHardArrayDynamic ProgrammingPrefix Sum
Solve → 3107Find Minimum Time to Reach Last Room IIMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 3108Minimum Moves to Spread Stones Over GridMediumArrayDynamic ProgrammingBacktracking
Solve → 3109Find All Groups of FarmlandMediumArrayDepth-First SearchBreadth-First Search
Solve → 3110Stone Game VHardArrayMathDynamic Programming
Solve → 3111Shift Distance Between Two StringsMediumArrayStringPrefix Sum
Solve → 3112Maximum Length of a Concatenated String with Unique CharactersMediumArrayStringBacktracking
Solve → 3113Sum of Good NumbersEasyArray
Solve → 3114Longest Word in DictionaryMediumArrayHash TableString
Solve → 3115The Maze IIIHardArrayStringDepth-First Search
Solve → 3116Create Sorted Array through InstructionsHardArrayBinary SearchDivide and Conquer
Solve → 3117Find Maximum Area of a TriangleMediumArrayHash TableMath
Solve → 3118Earliest Second to Mark Indices IIHardArrayBinary SearchGreedy
Solve → 3119Maximum Product After K IncrementsMediumArrayGreedyHeap (Priority Queue)
Solve → 3120Non-decreasing SubsequencesMediumArrayHash TableBacktracking
Solve → 3121Distribute CandiesEasyArrayHash Table
Solve → 3122Find the Kth Largest Integer in the ArrayMediumArrayStringDivide and Conquer
Solve → 3123Find the K-Sum of an ArrayHardArraySortingHeap (Priority Queue)
Solve → 3124Minimum Score After Removals on a TreeHardArrayBit ManipulationTree
Solve → 3125Partition Array Into Three Parts With Equal SumEasyArrayGreedy
Solve → 3126Count Islands With Total Value Divisible by KMediumArrayDepth-First SearchBreadth-First Search
Solve → 3127Count Prime-Gap Balanced SubarraysMediumArrayMathQueue
Solve → 3128Maximum Total from Optimal Activation OrderMediumArrayTwo PointersGreedy
Solve → 3129Minimum Array SumMediumArrayDynamic Programming
Solve → 3130Maximum Path Quality of a GraphHardArrayBacktrackingGraph Theory
Solve → 3131Minimum Index Sum of Two ListsEasyArrayHash TableString
Solve → 3132Partition Array Into K-Distinct GroupsMediumArrayHash TableCounting
Solve → 3133Reorder Data in Log FilesMediumArrayStringSorting
Solve → 3134Minimum Average of Smallest and Largest ElementsEasyArrayTwo PointersSorting
Solve → 3135Shortest Path in a Hidden GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 3136Sum of Beautiful SubsequencesHardArrayMathBinary Indexed Tree
Solve → 3137Find The Original Array of Prefix XorMediumArrayBit Manipulation
Solve → 3138Count Elements With Strictly Smaller and Greater ElementsEasyArraySortingCounting
Solve → 3139Maximum Area Rectangle With Point Constraints IIHardArrayMathBinary Indexed Tree
Solve → 3140Group the People Given the Group Size They Belong ToMediumArrayHash TableGreedy
Solve → 3141Split Array With Same AverageHardArrayHash TableMath
Solve → 3142Sum of Perfect Square AncestorsHardArrayHash TableMath
Solve → 3143Number of Valid Move Combinations On ChessboardHardArrayStringBacktracking
Solve → 3144Find Minimum Cost to Remove Array ElementsMediumArrayDynamic Programming
Solve → 3145Find the Longest Valid Obstacle Course at Each PositionHardArrayBinary SearchBinary Indexed Tree
Solve → 3146Partition Array into Disjoint IntervalsMediumArray
Solve → 3147Sort Even and Odd Indices IndependentlyEasyArraySorting
Solve → 3148Make Array EmptyHardArrayBinary SearchGreedy
Solve → 3149Escape a Large MazeHardArrayHash TableDepth-First Search
Solve → 3150Maximum Area of a Piece of Cake After Horizontal and Vertical CutsMediumArrayGreedySorting
Solve → 3151Find the Largest Almost Missing IntegerEasyArrayHash Table
Solve → 3152Smallest Index With Digit Sum Equal to IndexEasyArrayMath
Solve → 3153Binary Prefix Divisible By 5EasyArrayBit Manipulation
Solve → 3154Find Servers That Handled Most Number of RequestsHardArrayHeap (Priority Queue)Simulation
Solve → 3155Sum of Squares of Special ElementsEasyArrayEnumeration
Solve → 3156Maximum Value of a String in an ArrayEasyArrayString
Solve → 3157Append K Integers With Minimal SumMediumArrayMathGreedy
Solve → 3158Maximize Happiness of Selected ChildrenMediumArrayGreedySorting
Solve → 3159Sort the Matrix DiagonallyMediumArraySortingMatrix
Solve → 3160Merge BSTs to Create Single BSTHardArrayHash TableTree
Solve → 3161As Far from Land as PossibleMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 3162K-Concatenation Maximum SumMediumArrayDynamic Programming
Solve → 3163Number of Orders in the BacklogMediumArrayHeap (Priority Queue)Simulation
Solve → 3164Minimum Pair Removal to Sort Array IIHardArrayHash TableLinked List
Solve → 3165Largest Element in an Array after Merge OperationsMediumArrayGreedy
Solve → 3166Minimum Cost to Convert String IIHardArrayStringDynamic Programming
Solve → 3167Partition Array to Minimize XORMediumArrayDynamic ProgrammingBit Manipulation
Solve → 3168Minimum K to Reduce Array Within LimitMediumArrayBinary Search
Solve → 3169Transformed ArrayEasyArraySimulation
Solve → 3170Longest Balanced Subarray IMediumArrayHash TableDivide and Conquer
Solve → 3171Minimum Amount of Time to Collect GarbageMediumArrayStringPrefix Sum
Solve → 3172Number of Subarrays With LCM Equal to KMediumArrayMathNumber Theory
Solve → 3173Maximum Product of Three Elements After One ReplacementMediumArrayMathGreedy
Solve → 3174Number of Black BlocksMediumArrayHash TableEnumeration
Solve → 3175K Radius Subarray AveragesMediumArraySliding Window
Solve → 3176Find the Number of Subsequences With Equal GCDHardArrayMathDynamic Programming
Solve → 3177Maximum Number of Groups Entering a CompetitionMediumArrayMathBinary Search
Solve → 3178Count Sequences to KHardArrayMathDynamic Programming
Solve → 3179Minimum Number of Seconds to Make Mountain Height ZeroMediumArrayMathBinary Search
Solve → 3180Count Unhappy FriendsMediumArraySimulation
Solve → 3181Construct Product MatrixMediumArrayMatrixPrefix Sum
Solve → 3182Matrix Similarity After Cyclic ShiftsEasyArrayMathMatrix
Solve → 3183Reachable Nodes With RestrictionsMediumArrayHash TableTree
Solve → 3184Maximum Partition FactorHardArrayBinary SearchDepth-First Search
Solve → 3185Numbers At Most N Given Digit SetHardArrayMathString
Solve → 3186Valid Arrangement of PairsHardArrayDepth-First SearchGraph Theory
Solve → 3187Minimum Distance Between Three Equal Elements IEasyArrayHash Table
Solve → 3188Minimum XOR Path in a GridMediumArrayDynamic ProgrammingBit Manipulation
Solve → 3189Minimum Distance Between Three Equal Elements IIMediumArrayHash Table
Solve → 3190Final Array State After K Multiplication Operations IIHardArrayHeap (Priority Queue)Simulation
Solve → 3191Minimum Distance to the Target ElementEasyArray
Solve → 3192Find the Smallest Balanced IndexMediumArrayPrefix Sum
Solve → 3193Check if There is a Valid Path in a GridMediumArrayDepth-First SearchBreadth-First Search
Solve → 3194Find the Sum of the Power of All SubsequencesHardArrayDynamic Programming
Solve → 3195First Unique NumberMediumArrayHash TableDesign
Solve → 3196Maximize Count of Distinct Primes After SplitHardArrayHash TableMath
Solve → 3197Maximum Binary TreeMediumArrayDivide and ConquerStack
Solve → 3198Circular Array LoopMediumArrayHash TableTwo Pointers
Solve → 3199Minimum Swaps To Make Sequences IncreasingHardArrayDynamic Programming
Solve → 3200Maximum of Absolute Value ExpressionMediumArrayMath
Solve → 3201Find Subarrays With Equal SumEasyArrayHash Table
Solve → 3202Count Good MealsMediumArrayHash Table
Solve → 3203Find the PeaksEasyArrayEnumeration
Solve → 3204Weighted Word MappingEasyArrayStringSimulation
Solve → 3205Get Maximum in Generated ArrayEasyArraySimulation
Solve → 3206Maximum Total Subarray Value IIHardArrayGreedySegment Tree
Solve → 3207Plates Between CandlesMediumArrayStringBinary Search
Solve → 3208Number of Pairs of Interchangeable RectanglesMediumArrayHash TableMath
Solve → 3209Minimize the Difference Between Target and Chosen ElementsMediumArrayDynamic ProgrammingMatrix
Solve → 3210Queens That Can Attack the KingMediumArrayMatrixSimulation
Solve → 3211Subarrays Distinct Element Sum of Squares IEasyArrayHash TableSegment Tree
Solve → 3212Maximum Building HeightHardArrayMathSorting
Solve → 3213Maximum Ice Cream BarsMediumArrayGreedySorting
Solve → 3214Number of Sub-arrays of Size K and Average Greater than or Equal to ThresholdMediumArraySliding Window
Solve → 3215Maximum Sum Obtained of Any PermutationMediumArrayGreedySorting
Solve → 3216Buy Two ChocolatesEasyArrayGreedySorting
Solve → 3217Dice Roll SimulationHardArrayDynamic Programming
Solve → 3218Count Subarrays With Majority Element IMediumArrayHash TableDivide and Conquer
Solve →