1First Unique NumberMediumArrayHash TableDesign
Solve → 2Bus RoutesHardArrayHash TableBreadth-First Search
Solve → 3Squares of a Sorted ArrayEasyArrayTwo PointersSorting
Solve → 4Final Prices With a Special Discount in a ShopEasyArrayStackMonotonic Stack
Solve → 5Make Lexicographically Smallest Array by Swapping ElementsMediumArrayUnion-FindSorting
Solve → 6Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArrayQueueSliding Window
Solve → 7Shuffle an ArrayMediumArrayMathDesign
Solve → 8Number of Islands IIHardArrayHash TableUnion-Find
Solve → 9Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 10First Unique NumberMediumArrayHash TableDesign
Solve → 11Number of Islands IIHardArrayHash TableUnion-Find
Solve → 12Bus RoutesHardArrayHash TableBreadth-First Search
Solve → 13Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArrayQueueSliding Window
Solve → 14The Earliest Moment When Everyone Become FriendsMediumArrayUnion-FindSorting
Solve → 15Squares of a Sorted ArrayEasyArrayTwo PointersSorting
Solve → 16Construct Quad TreeMediumArrayDivide and ConquerTree
Solve → 17Final Prices With a Special Discount in a ShopEasyArrayStackMonotonic Stack
Solve → 18Alien DictionaryHardArrayStringDepth-First Search
Solve → 19Leftmost Column with at Least a OneMediumArrayBinary SearchMatrix
Solve → 20Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 21Word SearchMediumArrayStringBacktracking
Solve → 22Split Array Largest SumHardArrayBinary SearchDynamic Programming
Solve → 23Find Peak ElementMediumArrayBinary Search
Solve → 24Shuffle an ArrayMediumArrayMathDesign
Solve → 25Count the Number of Infection SequencesHardArrayMathCombinatorics
Solve → 26Word Search IIHardArrayStringBacktracking
Solve → 27Design Hit CounterMediumArrayBinary SearchDesign
Solve → 28Insert Delete GetRandom O(1)MediumArrayHash TableMath
Solve → 29Merge IntervalsMediumArraySorting
Solve → 30Maximum Number of Points From Grid QueriesHardArrayTwo PointersBreadth-First Search
Solve → 31Evaluate DivisionMediumArrayStringDepth-First Search
Solve → 32Make Lexicographically Smallest Array by Swapping ElementsMediumArrayUnion-FindSorting
Solve → 33Binary Searchable Numbers in an Unsorted ArrayMediumArrayBinary SearchStack
Solve → 34Minimum Number of Refueling StopsHardArrayDynamic ProgrammingGreedy
Solve → 35First Unique NumberMediumArrayHash TableDesign
Solve → 36Number of Islands IIHardArrayHash TableUnion-Find
Solve → 37Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArrayQueueSliding Window
Solve → 38Construct Quad TreeMediumArrayDivide and ConquerTree
Solve → 39Bus RoutesHardArrayHash TableBreadth-First Search
Solve → 40Alien DictionaryHardArrayStringDepth-First Search
Solve → 41The Earliest Moment When Everyone Become FriendsMediumArrayUnion-FindSorting
Solve → 42Squares of a Sorted ArrayEasyArrayTwo PointersSorting
Solve → 43Final Prices With a Special Discount in a ShopEasyArrayStackMonotonic Stack
Solve → 44Leftmost Column with at Least a OneMediumArrayBinary SearchMatrix
Solve → 45Design Hit CounterMediumArrayBinary SearchDesign
Solve → 46Word SearchMediumArrayStringBacktracking
Solve → 47Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 48Find Peak ElementMediumArrayBinary Search
Solve → 49Split Array Largest SumHardArrayBinary SearchDynamic Programming
Solve → 50Making A Large IslandHardArrayDepth-First SearchBreadth-First Search
Solve → 51Word Search IIHardArrayStringBacktracking
Solve → 52Insert Delete GetRandom O(1)MediumArrayHash TableMath
Solve → 53Maximum Number of Points From Grid QueriesHardArrayTwo PointersBreadth-First Search
Solve → 54Shortest Path to Get All KeysHardArrayBit ManipulationBreadth-First Search
Solve → 55Shuffle an ArrayMediumArrayMathDesign
Solve → 56Evaluate DivisionMediumArrayStringDepth-First Search
Solve → 57Merge IntervalsMediumArraySorting
Solve → 59Maximum Number of AlloysMediumArrayBinary Search
Solve → 60Count the Number of Infection SequencesHardArrayMathCombinatorics
Solve → 61Binary Searchable Numbers in an Unsorted ArrayMediumArrayBinary SearchStack
Solve → 62Shortest BridgeMediumArrayDepth-First SearchBreadth-First Search
Solve → 63Meeting Rooms IIMediumArrayTwo PointersGreedy
Solve → 64Meeting Rooms IIIHardArrayHash TableSorting
Solve → 65Rotting OrangesMediumArrayBreadth-First SearchMatrix
Solve → 66Rearranging FruitsHardArrayHash TableGreedy
Solve → 67Minimum Jumps to Reach End via Prime TeleportationMediumArrayHash TableMath
Solve → 6824 GameHardArrayMathBacktracking
Solve → 69Longest Subsequence With Limited SumEasyArrayBinary SearchGreedy
Solve → 70Find K-th Smallest Pair DistanceHardArrayTwo PointersBinary Search
Solve → 71Best Time to Buy and Sell StockEasyArrayDynamic Programming
Solve → 72Most Profitable Path in a TreeMediumArrayTreeDepth-First Search
Solve → 73Zero Array Transformation IIMediumArrayTwo PointersBinary Search
Solve → 74Dungeon GameHardArrayDynamic ProgrammingMatrix
Solve → 75Make Lexicographically Smallest Array by Swapping ElementsMediumArrayUnion-FindSorting
Solve → 76Search in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 77Minimum Number of Refueling StopsHardArrayDynamic ProgrammingGreedy
Solve → 78Bus RoutesHardArrayHash TableBreadth-First Search
Solve → 79Alien DictionaryHardArrayStringDepth-First Search
Solve → 80Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArrayQueueSliding Window
Solve → 81Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 82Number of Islands IIHardArrayHash TableUnion-Find
Solve → 83Squares of a Sorted ArrayEasyArrayTwo PointersSorting
Solve → 84Construct Quad TreeMediumArrayDivide and ConquerTree
Solve → 85Word SearchMediumArrayStringBacktracking
Solve → 86Word Search IIHardArrayStringBacktracking
Solve → 87Design Hit CounterMediumArrayBinary SearchDesign
Solve → 88My Calendar IMediumArrayBinary SearchDesign
Solve → 89Product of Array Except SelfMediumArrayPrefix Sum
Solve → 90Text JustificationHardArrayStringSimulation
Solve → 91First Unique NumberMediumArrayHash TableDesign
Solve → 92Insert Delete GetRandom O(1)MediumArrayHash TableMath
Solve → 93Evaluate DivisionMediumArrayStringDepth-First Search
Solve → 94Block Placement QueriesHardArrayBinary SearchBinary Indexed Tree
Solve → 95Best Time to Buy and Sell StockEasyArrayDynamic Programming
Solve → 96Random Pick with WeightMediumArrayMathBinary Search
Solve → 97Shortest BridgeMediumArrayDepth-First SearchBreadth-First Search
Solve → 98Meeting Rooms IIMediumArrayTwo PointersGreedy
Solve → 99Rotating the BoxMediumArrayTwo PointersMatrix
Solve → 100Leftmost Column with at Least a OneMediumArrayBinary SearchMatrix
Solve → 101Cherry PickupHardArrayDynamic ProgrammingMatrix
Solve → 102Top K Frequent ElementsMediumArrayHash TableDivide and Conquer
Solve → 103The MazeMediumArrayDepth-First SearchBreadth-First Search
Solve → 104Spiral MatrixMediumArrayMatrixSimulation
Solve → 105Shuffle an ArrayMediumArrayMathDesign
Solve → 106Valid SudokuMediumArrayHash TableMatrix
Solve → 107Koko Eating BananasMediumArrayBinary Search
Solve → 108Minimum Operations to Write the Letter Y on a GridMediumArrayHash TableMatrix
Solve → 109Find Minimum Time to Reach Last Room IMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 110Maximize Amount After Two Days of ConversionsMediumArrayStringDepth-First Search
Solve → 111Maximum Coin CollectionMediumArrayDynamic Programming
Solve → 112The Maze IIMediumArrayDepth-First SearchBreadth-First Search
Solve → 113Coin ChangeMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 114Optimal Account BalancingHardArrayDynamic ProgrammingBacktracking
Solve → 115Count Subarrays With Fixed BoundsHardArrayQueueSliding Window
Solve → 116Find the Number of Ways to Place People IIHardArrayMathGeometry
Solve → 117Find Minimum Time to Reach Last Room IIMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 118Group AnagramsMediumArrayHash TableString
Solve → 119Top K Frequent WordsMediumArrayHash TableString
Solve → 120Rotting OrangesMediumArrayBreadth-First SearchMatrix
Solve → 121Meeting Rooms IIIHardArrayHash TableSorting
Solve → 122Open the LockMediumArrayHash TableString
Solve → 123Number of Black BlocksMediumArrayHash TableEnumeration
Solve → 124Word BreakMediumArrayHash TableString
Solve → 125Making A Large IslandHardArrayDepth-First SearchBreadth-First Search
Solve → 126Two SumEasyArrayHash Table
Solve → 127Rotate ImageMediumArrayMathMatrix
Solve → 128Largest Rectangle in HistogramHardArrayStackMonotonic Stack
Solve → 129Sliding Window MaximumHardArrayQueueSliding Window
Solve → 130Find All Possible Recipes from Given SuppliesMediumArrayHash TableString
Solve → 131Longest Path With Different Adjacent CharactersHardArrayStringTree
Solve → 132Insert IntervalMediumArray
Solve → 133House RobberMediumArrayDynamic Programming
Solve → 134Split Array Largest SumHardArrayBinary SearchDynamic Programming
Solve → 135Collect Coins in a TreeHardArrayTreeGraph Theory
Solve → 136Number of Matching SubsequencesMediumArrayHash TableString
Solve → 137Escape the Spreading FireHardArrayBinary SearchBreadth-First Search
Solve → 138Minimum Cost For TicketsMediumArrayDynamic Programming
Solve → 139Subarray Sums Divisible by KMediumArrayHash TablePrefix Sum
Solve → 140Design Memory AllocatorMediumArrayHash TableDesign
Solve → 141Minimum Cost to Make at Least One Valid Path in a GridHardArrayBreadth-First SearchGraph Theory
Solve → 142Find First and Last Position of Element in Sorted ArrayMediumArrayBinary Search
Solve → 143Trapping Rain WaterHardArrayTwo PointersDynamic Programming
Solve → 144Merge IntervalsMediumArraySorting
Solve → 145Longest Consecutive SequenceMediumArrayHash TableUnion-Find
Solve → 147Dungeon GameHardArrayDynamic ProgrammingMatrix
Solve → 148The Skyline ProblemHardArrayDivide and ConquerBinary Indexed Tree
Solve → 149Reconstruct ItineraryHardArrayStringDepth-First Search
Solve → 150Task SchedulerMediumArrayHash TableGreedy
Solve → 151Verifying an Alien DictionaryEasyArrayHash TableString
Solve → 152Minimum Number of Operations to Make Array ContinuousHardArrayHash TableBinary Search
Solve → 153Sliding PuzzleHardArrayDynamic ProgrammingBacktracking
Solve → 154Burst BalloonsHardArrayDynamic Programming
Solve → 155Brightest Position on StreetMediumArraySortingPrefix Sum
Solve → 156Maximum Points You Can Obtain from CardsMediumArraySliding WindowPrefix Sum
Solve → 157Next PermutationMediumArrayTwo Pointers
Solve → 158Search in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 159Maximum SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 160Minimum Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 161Find Peak ElementMediumArrayBinary Search
Solve → 162Longest Increasing Path in a MatrixHardArrayDynamic ProgrammingDepth-First Search
Solve → 163Interval List IntersectionsMediumArrayTwo PointersSweep Line
Solve → 164Subarrays with K Different IntegersHardArrayHash TableSliding Window
Solve → 165Minimum Time to Complete TripsMediumArrayBinary Search
Solve → 166Walls and GatesMediumArrayBreadth-First SearchMatrix
Solve → 167Min Cost to Connect All PointsMediumArrayUnion-FindGraph Theory
Solve → 168Sudoku SolverHardArrayHash TableBacktracking
Solve → 169Exclusive Time of FunctionsMediumArrayStack
Solve → 170Smallest String With SwapsMediumArrayHash TableString
Solve → 171Replace Non-Coprime Numbers in ArrayHardArrayMathStack
Solve → 172Count Nice Pairs in an ArrayMediumArrayHash TableMath
Solve → 173Number of Adjacent Elements With the Same ColorMediumArray
Solve → 174Find Minimum in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 175Detonate the Maximum BombsMediumArrayMathDepth-First Search
Solve → 176Maximum Earnings From TaxiMediumArrayHash TableBinary Search
Solve → 177Final Prices With a Special Discount in a ShopEasyArrayStackMonotonic Stack
Solve → 178Remove ElementEasyArrayTwo Pointers
Solve → 179PermutationsMediumArrayBacktracking
Solve → 180SubsetsMediumArrayBacktrackingBit Manipulation
Solve → 181Move ZeroesEasyArrayTwo Pointers
Solve → 182Subarray Sum Equals KMediumArrayHash TablePrefix Sum
Solve → 183Asteroid CollisionMediumArrayStackSimulation
Solve → 184Frequency of the Most Frequent ElementMediumArrayBinary SearchGreedy
Solve → 185Number of Flowers in Full BloomHardArrayHash TableBinary Search
Solve → 186Check if a String Is an Acronym of WordsEasyArrayString
Solve → 187Find the Length of the Longest Common PrefixMediumArrayHash TableString
Solve → 188Count the Number of Good SubarraysMediumArrayHash TableSliding Window
Solve → 189Minimum Absolute Difference Between Elements With ConstraintMediumArrayBinary SearchOrdered Set
Solve → 190Replace WordsMediumArrayHash TableString
Solve → 191Combination SumMediumArrayBacktracking
Solve → 192Maximum Subarray Min-ProductMediumArrayStackMonotonic Stack
Solve → 193Points That Intersect With CarsEasyArrayHash TablePrefix Sum
Solve → 194Find the Most Competitive SubsequenceMediumArrayStackGreedy
Solve → 195Surrounded RegionsMediumArrayDepth-First SearchBreadth-First Search
Solve → 196Remove CommentsMediumArrayString
Solve → 197Most Profitable Path in a TreeMediumArrayTreeDepth-First Search
Solve → 198Analyze User Website Visit PatternMediumArrayHash TableString
Solve → 199Number of Subarrays That Match a Pattern IMediumArrayRolling HashString Matching
Solve → 20024 GameHardArrayMathBacktracking
Solve → 201Put Marbles in BagsHardArrayGreedySorting
Solve → 202Graph Connectivity With ThresholdHardArrayMathUnion-Find
Solve → 203Minimum Number of Taps to Open to Water a GardenHardArrayDynamic ProgrammingGreedy
Solve → 204Largest 1-Bordered SquareMediumArrayDynamic ProgrammingMatrix
Solve → 205Shortest Path in Binary MatrixMediumArrayBreadth-First SearchMatrix
Solve → 206Maximum Profit in Job SchedulingHardArrayBinary SearchDynamic Programming
Solve → 207Longest Common PrefixEasyArrayStringTrie
Solve → 208Remove Duplicates from Sorted ArrayEasyArrayTwo Pointers
Solve → 209Word Break IIHardArrayHash TableString
Solve → 210Kth Largest Element in an ArrayMediumArrayDivide and ConquerSorting
Solve → 211Search a 2D Matrix IIMediumArrayBinary SearchDivide and Conquer
Solve → 212Patching ArrayHardArrayGreedy
Solve → 213Matchsticks to SquareMediumArrayDynamic ProgrammingBacktracking
Solve → 214Predict the WinnerMediumArrayMathDynamic Programming
Solve → 21501 MatrixMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 216Find K Closest ElementsMediumArrayTwo PointersBinary Search
Solve → 217Flood FillEasyArrayDepth-First SearchBreadth-First Search
Solve → 218Swim in Rising WaterHardArrayBinary SearchDepth-First Search
Solve → 219Capacity To Ship Packages Within D DaysMediumArrayBinary Search
Solve → 220Stone Game IIMediumArrayMathDynamic Programming
Solve → 221Nearest Exit from Entrance in MazeMediumArrayBreadth-First SearchMatrix
Solve → 222Simple Bank SystemMediumArrayHash TableDesign
Solve → 223Time Needed to Buy TicketsEasyArrayQueueSimulation
Solve → 224Amount of New Area Painted Each DayHardArraySegment TreeOrdered Set
Solve → 225Next Greater Element IEasyArrayHash TableStack
Solve → 226House Robber IIMediumArrayDynamic Programming
Solve → 227Candy CrushMediumArrayTwo PointersMatrix
Solve → 228Create Binary Tree From DescriptionsMediumArrayHash TableTree
Solve → 229Find Pattern in Infinite Stream IMediumArraySliding WindowRolling Hash
Solve → 230Check for Contradictions in EquationsHardArrayStringDepth-First Search
Solve → 231Random Pick with BlacklistHardArrayHash TableMath
Solve → 232Minimum Operations to Make Binary Array Elements Equal to One IMediumArrayBit ManipulationQueue
Solve → 233Maximum XOR for Each QueryMediumArrayBit ManipulationPrefix Sum
Solve → 234Minimum Operations to Make Binary Array Elements Equal to One IIMediumArrayDynamic ProgrammingGreedy
Solve → 235Find Pattern in Infinite Stream IIHardArraySliding WindowRolling Hash
Solve → 236Minimum Absolute Sum DifferenceMediumArrayBinary SearchSorting
Solve → 237Intersection of Multiple ArraysEasyArrayHash TableSorting
Solve → 238Number Of Ways To Reconstruct A TreeHardArrayHash TableTree
Solve → 239Maximum Number of Eaten ApplesMediumArrayGreedyHeap (Priority Queue)
Solve → 240K Divisible Elements SubarraysMediumArrayHash TableTrie
Solve → 241Array With Elements Not Equal to Average of NeighborsMediumArrayGreedySorting
Solve → 242Number of People That Can Be Seen in a GridMediumArrayStackMatrix
Solve → 243Fixed PointEasyArrayBinary Search
Solve → 244Check If String Is a Prefix of ArrayEasyArrayTwo PointersString
Solve → 245Employee ImportanceMediumArrayHash TableTree
Solve → 246Number of Strings That Appear as Substrings in WordEasyArrayString
Solve → 247Maximum Increasing Triplet ValueMediumArrayOrdered Set
Solve → 248Falling SquaresHardArraySegment TreeOrdered Set
Solve → 249Match Alphanumerical Pattern in Matrix IMediumArrayHash TableString
Solve → 250Find the Distance Value Between Two ArraysEasyArrayTwo PointersBinary Search
Solve → 251Minimum Score Triangulation of PolygonMediumArrayDynamic Programming
Solve → 252Regions Cut By SlashesMediumArrayHash TableDepth-First Search
Solve → 253Maximize Win From Two SegmentsMediumArrayBinary SearchSliding Window
Solve → 254Minimum Sum of Squared DifferenceMediumArrayBinary SearchGreedy
Solve → 255Find K Pairs with Smallest SumsMediumArrayHeap (Priority Queue)
Solve → 256Group Shifted StringsMediumArrayHash TableString
Solve → 257Paint HouseMediumArrayDynamic Programming
Solve → 258Design Browser HistoryMediumArrayLinked ListStack
Solve → 259Get Biggest Three Rhombus Sums in a GridMediumArrayMathSorting
Solve → 260Meeting RoomsEasyArraySorting
Solve → 261Meeting SchedulerMediumArrayTwo PointersSorting
Solve → 262Spiral Matrix IIIMediumArrayMatrixSimulation
Solve → 263Minimize Malware SpreadHardArrayHash TableDepth-First Search
Solve → 264Minimize Malware Spread IIHardArrayHash TableDepth-First Search
Solve → 265Furthest Building You Can ReachMediumArrayGreedyHeap (Priority Queue)
Solve → 266Count Prefix and Suffix Pairs IIHardArrayStringTrie
Solve → 267Design Snake GameMediumArrayHash TableDesign
Solve → 268Shortest Path in a Grid with Obstacles EliminationHardArrayBreadth-First SearchMatrix
Solve → 269Maximum Average Subarray IEasyArraySliding Window
Solve → 270Linked List ComponentsMediumArrayHash TableLinked List
Solve → 271Ones and ZeroesMediumArrayStringDynamic Programming
Solve → 272Maximize Sum Of Array After K NegationsEasyArrayGreedySorting
Solve → 273Longest Increasing SubsequenceMediumArrayBinary SearchDynamic Programming
Solve → 274Random Point in Non-overlapping RectanglesMediumArrayMathBinary Search
Solve → 275Find the Maximum Length of Valid Subsequence IIMediumArrayDynamic Programming
Solve → 276Set Matrix ZeroesMediumArrayHash TableMatrix
Solve → 277Number of Subarrays with Bounded MaximumMediumArrayTwo Pointers
Solve → 278Maximum Number of Events That Can Be AttendedMediumArrayGreedySorting
Solve → 279Bomb EnemyMediumArrayDynamic ProgrammingMatrix
Solve → 280Insert Delete GetRandom O(1) - Duplicates allowedHardArrayHash TableMath
Solve → 281The Earliest Moment When Everyone Become FriendsMediumArrayUnion-FindSorting
Solve → 282Find the Safest Path in a GridMediumArrayBinary SearchBreadth-First Search
Solve → 283Median of Two Sorted ArraysHardArrayBinary SearchDivide and Conquer
Solve → 284Accounts MergeMediumArrayHash TableString
Solve → 285Minimum Difference in Sums After Removal of ElementsHardArrayDynamic ProgrammingHeap (Priority Queue)
Solve → 286Count PrimesMediumArrayMathEnumeration
Solve → 287Bus RoutesHardArrayHash TableBreadth-First Search
Solve → 288Alien DictionaryHardArrayStringDepth-First Search
Solve → 289Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArrayQueueSliding Window
Solve → 290Number of IslandsMediumArrayDepth-First SearchBreadth-First Search
Solve → 291Number of Islands IIHardArrayHash TableUnion-Find
Solve → 292Squares of a Sorted ArrayEasyArrayTwo PointersSorting
Solve → 293Construct Quad TreeMediumArrayDivide and ConquerTree
Solve → 294First Unique NumberMediumArrayHash TableDesign
Solve → 295Word SearchMediumArrayStringBacktracking
Solve → 296Insert Delete GetRandom O(1)MediumArrayHash TableMath
Solve → 297Design Hit CounterMediumArrayBinary SearchDesign
Solve → 298Word Search IIHardArrayStringBacktracking
Solve → 299Best Time to Buy and Sell StockEasyArrayDynamic Programming
Solve → 300My Calendar IMediumArrayBinary SearchDesign
Solve → 301Product of Array Except SelfMediumArrayPrefix Sum
Solve → 302Evaluate DivisionMediumArrayStringDepth-First Search
Solve → 303Random Pick with WeightMediumArrayMathBinary Search
Solve → 304Text JustificationHardArrayStringSimulation
Solve → 305Leftmost Column with at Least a OneMediumArrayBinary SearchMatrix
Solve → 306Block Placement QueriesHardArrayBinary SearchBinary Indexed Tree
Solve → 307Valid SudokuMediumArrayHash TableMatrix
Solve → 308Spiral MatrixMediumArrayMatrixSimulation
Solve → 309Making A Large IslandHardArrayDepth-First SearchBreadth-First Search
Solve → 310Find Minimum Time to Reach Last Room IMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 311Group AnagramsMediumArrayHash TableString
Solve → 312Top K Frequent WordsMediumArrayHash TableString
Solve → 313Shortest BridgeMediumArrayDepth-First SearchBreadth-First Search
Solve → 314Word BreakMediumArrayHash TableString
Solve → 315Meeting Rooms IIMediumArrayTwo PointersGreedy
Solve → 316Final Prices With a Special Discount in a ShopEasyArrayStackMonotonic Stack
Solve → 317Shuffle an ArrayMediumArrayMathDesign
Solve → 318The Earliest Moment When Everyone Become FriendsMediumArrayUnion-FindSorting
Solve → 319Two SumEasyArrayHash Table
Solve → 320Escape the Spreading FireHardArrayBinary SearchBreadth-First Search
Solve → 321Rotating the BoxMediumArrayTwo PointersMatrix
Solve → 322Search in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 323Top K Frequent ElementsMediumArrayHash TableDivide and Conquer
Solve → 324Cherry PickupHardArrayDynamic ProgrammingMatrix
Solve → 325Minimum Number of Operations to Make Array ContinuousHardArrayHash TableBinary Search
Solve → 326The MazeMediumArrayDepth-First SearchBreadth-First Search
Solve → 327Minimum Time to Complete TripsMediumArrayBinary Search
Solve → 328Sudoku SolverHardArrayHash TableBacktracking
Solve → 329Exclusive Time of FunctionsMediumArrayStack
Solve → 330Replace WordsMediumArrayHash TableString
Solve → 331Asteroid CollisionMediumArrayStackSimulation
Solve → 332Koko Eating BananasMediumArrayBinary Search
Solve → 333Combination SumMediumArrayBacktracking
Solve → 334SubsetsMediumArrayBacktrackingBit Manipulation
Solve → 335Find Peak ElementMediumArrayBinary Search
Solve → 336Coin ChangeMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 337Find K Pairs with Smallest SumsMediumArrayHeap (Priority Queue)
Solve → 338Split Array Largest SumHardArrayBinary SearchDynamic Programming
Solve → 339Regions Cut By SlashesMediumArrayHash TableDepth-First Search
Solve → 340Rotting OrangesMediumArrayBreadth-First SearchMatrix
Solve → 341Maximum Subarray Min-ProductMediumArrayStackMonotonic Stack
Solve → 342Meeting Rooms IIIHardArrayHash TableSorting
Solve → 343Check if a String Is an Acronym of WordsEasyArrayString
Solve → 344Points That Intersect With CarsEasyArrayHash TablePrefix Sum
Solve → 345Minimum Operations to Write the Letter Y on a GridMediumArrayHash TableMatrix
Solve → 346Maximize Amount After Two Days of ConversionsMediumArrayStringDepth-First Search
Solve → 347Maximum Coin CollectionMediumArrayDynamic Programming
Solve → 348The Maze IIMediumArrayDepth-First SearchBreadth-First Search
Solve → 349Word Break IIHardArrayHash TableString
Solve → 350Group Shifted StringsMediumArrayHash TableString
Solve → 351Optimal Account BalancingHardArrayDynamic ProgrammingBacktracking
Solve → 352Employee ImportanceMediumArrayHash TableTree
Solve → 353Falling SquaresHardArraySegment TreeOrdered Set
Solve → 354Flood FillEasyArrayDepth-First SearchBreadth-First Search
Solve → 355Random Pick with BlacklistHardArrayHash TableMath
Solve → 356Fixed PointEasyArrayBinary Search
Solve → 357Minimum Score Triangulation of PolygonMediumArrayDynamic Programming
Solve → 358Find the Distance Value Between Two ArraysEasyArrayTwo PointersBinary Search
Solve → 359Number Of Ways To Reconstruct A TreeHardArrayHash TableTree
Solve → 360Maximum Number of Eaten ApplesMediumArrayGreedyHeap (Priority Queue)
Solve → 361Maximum XOR for Each QueryMediumArrayBit ManipulationPrefix Sum
Solve → 362Minimum Absolute Sum DifferenceMediumArrayBinary SearchSorting
Solve → 363Nearest Exit from Entrance in MazeMediumArrayBreadth-First SearchMatrix
Solve → 364Check for Contradictions in EquationsHardArrayStringDepth-First Search
Solve → 365Array With Elements Not Equal to Average of NeighborsMediumArrayGreedySorting
Solve → 366Check If String Is a Prefix of ArrayEasyArrayTwo PointersString
Solve → 367Number of Strings That Appear as Substrings in WordEasyArrayString
Solve → 368Create Binary Tree From DescriptionsMediumArrayHash TableTree
Solve → 369Intersection of Multiple ArraysEasyArrayHash TableSorting
Solve → 370K Divisible Elements SubarraysMediumArrayHash TableTrie
Solve → 371Minimum Sum of Squared DifferenceMediumArrayBinary SearchGreedy
Solve → 372Number of People That Can Be Seen in a GridMediumArrayStackMatrix
Solve → 373Count Subarrays With Fixed BoundsHardArrayQueueSliding Window
Solve → 374Maximize Win From Two SegmentsMediumArrayBinary SearchSliding Window
Solve → 375Find Pattern in Infinite Stream IMediumArraySliding WindowRolling Hash
Solve → 376Find Pattern in Infinite Stream IIHardArraySliding WindowRolling Hash
Solve → 377Maximum Increasing Triplet ValueMediumArrayOrdered Set
Solve → 378Match Alphanumerical Pattern in Matrix IMediumArrayHash TableString
Solve → 379Minimum Operations to Make Binary Array Elements Equal to One IMediumArrayBit ManipulationQueue
Solve → 380Minimum Operations to Make Binary Array Elements Equal to One IIMediumArrayDynamic ProgrammingGreedy
Solve → 381Find the Number of Ways to Place People IIHardArrayMathGeometry
Solve → 382Find Minimum Time to Reach Last Room IIMediumArrayGraph TheoryHeap (Priority Queue)
Solve → 383Open the LockMediumArrayHash TableString
Solve → 384Number of Black BlocksMediumArrayHash TableEnumeration
Solve → 385Minimum Cost to Equalize Arrays Using SwapsMediumArrayHash TableGreedy
Solve → 386Merge IntervalsMediumArraySorting
Solve → 387Largest Rectangle in HistogramHardArrayStackMonotonic Stack
Solve → 388Sliding Window MaximumHardArrayQueueSliding Window
Solve → 389Best Time to Buy and Sell Stock using StrategyMediumArraySliding WindowPrefix Sum
Solve → 390Rotate ImageMediumArrayMathMatrix
Solve → 391Dungeon GameHardArrayDynamic ProgrammingMatrix
Solve → 392Find All Possible Recipes from Given SuppliesMediumArrayHash TableString
Solve → 393Subarray Sums Divisible by KMediumArrayHash TablePrefix Sum
Solve → 394Longest Path With Different Adjacent CharactersHardArrayStringTree
Solve → 395Minimum Cost to Make at Least One Valid Path in a GridHardArrayBreadth-First SearchGraph Theory
Solve → 396Trapping Rain WaterHardArrayTwo PointersDynamic Programming
Solve → 397Insert IntervalMediumArray
Solve → 398Longest Consecutive SequenceMediumArrayHash TableUnion-Find
Solve → 400House RobberMediumArrayDynamic Programming
Solve → 401Number of Matching SubsequencesMediumArrayHash TableString
Solve → 402Verifying an Alien DictionaryEasyArrayHash TableString
Solve → 403Minimum Cost For TicketsMediumArrayDynamic Programming
Solve → 404Collect Coins in a TreeHardArrayTreeGraph Theory
Solve → 405Design Memory AllocatorMediumArrayHash TableDesign
Solve → 406Find First and Last Position of Element in Sorted ArrayMediumArrayBinary Search
Solve → 407The Skyline ProblemHardArrayDivide and ConquerBinary Indexed Tree
Solve → 408Longest Increasing Path in a MatrixHardArrayDynamic ProgrammingDepth-First Search
Solve → 409Reconstruct ItineraryHardArrayStringDepth-First Search
Solve → 410Task SchedulerMediumArrayHash TableGreedy
Solve → 411Sliding PuzzleHardArrayDynamic ProgrammingBacktracking
Solve → 412Min Cost to Connect All PointsMediumArrayUnion-FindGraph Theory
Solve → 413Most Profitable Path in a TreeMediumArrayTreeDepth-First Search
Solve → 414Brightest Position on StreetMediumArraySortingPrefix Sum
Solve → 415Number of Adjacent Elements With the Same ColorMediumArray
Solve → 41624 GameHardArrayMathBacktracking
Solve → 417Maximum Points You Can Obtain from CardsMediumArraySliding WindowPrefix Sum
Solve → 418Burst BalloonsHardArrayDynamic Programming
Solve → 419Maximum Number of Points From Grid QueriesHardArrayTwo PointersBreadth-First Search
Solve → 420Longest Common PrefixEasyArrayStringTrie
Solve → 421Next PermutationMediumArrayTwo Pointers
Solve → 422PermutationsMediumArrayBacktracking
Solve → 423Maximum SubarrayMediumArrayDivide and ConquerDynamic Programming
Solve → 424Minimum Path SumMediumArrayDynamic ProgrammingMatrix
Solve → 425Find Minimum in Rotated Sorted ArrayMediumArrayBinary Search
Solve → 426Move ZeroesEasyArrayTwo Pointers
Solve → 427Walls and GatesMediumArrayBreadth-First SearchMatrix
Solve → 428Subarray Sum Equals KMediumArrayHash TablePrefix Sum
Solve → 429Interval List IntersectionsMediumArrayTwo PointersSweep Line
Solve → 430Subarrays with K Different IntegersHardArrayHash TableSliding Window
Solve → 431Count Nice Pairs in an ArrayMediumArrayHash TableMath
Solve → 432Maximum Earnings From TaxiMediumArrayHash TableBinary Search
Solve → 433Number of Flowers in Full BloomHardArrayHash TableBinary Search
Solve → 434Find the Length of the Longest Common PrefixMediumArrayHash TableString
Solve → 435Smallest String With SwapsMediumArrayHash TableString
Solve → 436Detonate the Maximum BombsMediumArrayMathDepth-First Search
Solve → 437Replace Non-Coprime Numbers in ArrayHardArrayMathStack
Solve → 438Maximum Profit in Job SchedulingHardArrayBinary SearchDynamic Programming
Solve → 439Shortest Path to Get All KeysHardArrayBit ManipulationBreadth-First Search
Solve → 440Maximum Number of AlloysMediumArrayBinary Search
Solve → 441Median of Two Sorted ArraysHardArrayBinary SearchDivide and Conquer
Solve → 442Remove ElementEasyArrayTwo Pointers
Solve → 443Capacity To Ship Packages Within D DaysMediumArrayBinary Search
Solve → 444Analyze User Website Visit PatternMediumArrayHash TableString
Solve → 445Minimum Number of Taps to Open to Water a GardenHardArrayDynamic ProgrammingGreedy
Solve → 446Furthest Building You Can ReachMediumArrayGreedyHeap (Priority Queue)
Solve → 447Frequency of the Most Frequent ElementMediumArrayBinary SearchGreedy
Solve → 448Count the Number of Good SubarraysMediumArrayHash TableSliding Window
Solve → 449Put Marbles in BagsHardArrayGreedySorting
Solve → 450Minimum Absolute Difference Between Elements With ConstraintMediumArrayBinary SearchOrdered Set
Solve → 451Find the Most Competitive SubsequenceMediumArrayStackGreedy
Solve → 452Design Browser HistoryMediumArrayLinked ListStack
Solve → 453Meeting SchedulerMediumArrayTwo PointersSorting
Solve → 454Remove CommentsMediumArrayString
Solve → 455Surrounded RegionsMediumArrayDepth-First SearchBreadth-First Search
Solve → 456Number of Subarrays That Match a Pattern IMediumArrayRolling HashString Matching
Solve → 457Largest 1-Bordered SquareMediumArrayDynamic ProgrammingMatrix
Solve → 458Graph Connectivity With ThresholdHardArrayMathUnion-Find
Solve → 459Shortest Path in Binary MatrixMediumArrayBreadth-First SearchMatrix
Solve → 460Random Point in Non-overlapping RectanglesMediumArrayMathBinary Search
Solve → 461Maximum Number of Events That Can Be AttendedMediumArrayGreedySorting
Solve → 462Count PrimesMediumArrayMathEnumeration
Solve → 463IPOHardArrayGreedySorting
Solve → 464Minimum Jumps to Reach End via Prime TeleportationMediumArrayHash TableMath
Solve → 465Count the Number of Infection SequencesHardArrayMathCombinatorics
Solve → 466Binary Searchable Numbers in an Unsorted ArrayMediumArrayBinary SearchStack
Solve → 467Container With Most WaterMediumArrayTwo PointersGreedy
Solve → 468Remove Duplicates from Sorted ArrayEasyArrayTwo Pointers
Solve → 469Set Matrix ZeroesMediumArrayHash TableMatrix
Solve → 470Kth Largest Element in an ArrayMediumArrayDivide and ConquerSorting
Solve → 471Search a 2D Matrix IIMediumArrayBinary SearchDivide and Conquer
Solve → 472Longest Increasing SubsequenceMediumArrayBinary SearchDynamic Programming
Solve → 473Patching ArrayHardArrayGreedy
Solve → 474Matchsticks to SquareMediumArrayDynamic ProgrammingBacktracking
Solve → 475Predict the WinnerMediumArrayMathDynamic Programming
Solve → 476Next Greater Element IEasyArrayHash TableStack
Solve → 47701 MatrixMediumArrayDynamic ProgrammingBreadth-First Search
Solve → 478Find K Closest ElementsMediumArrayTwo PointersBinary Search
Solve → 479Candy CrushMediumArrayTwo PointersMatrix
Solve → 480Swim in Rising WaterHardArrayBinary SearchDepth-First Search
Solve → 481Stone Game IIMediumArrayMathDynamic Programming
Solve → 482Simple Bank SystemMediumArrayHash TableDesign
Solve → 483Time Needed to Buy TicketsEasyArrayQueueSimulation
Solve → 484Amount of New Area Painted Each DayHardArraySegment TreeOrdered Set
Solve → 485House Robber IIMediumArrayDynamic Programming
Solve → 486Paint HouseMediumArrayDynamic Programming
Solve → 487Get Biggest Three Rhombus Sums in a GridMediumArrayMathSorting
Solve → 488Meeting RoomsEasyArraySorting
Solve → 489Spiral Matrix IIIMediumArrayMatrixSimulation
Solve → 490Minimize Malware SpreadHardArrayHash TableDepth-First Search
Solve → 491Minimize Malware Spread IIHardArrayHash TableDepth-First Search
Solve → 492Count Prefix and Suffix Pairs IIHardArrayStringTrie
Solve → 493Shortest Path in a Grid with Obstacles EliminationHardArrayBreadth-First SearchMatrix
Solve → 494Maximize Sum Of Array After K NegationsEasyArrayGreedySorting
Solve → 495Number of Subarrays with Bounded MaximumMediumArrayTwo Pointers
Solve → 496Design Snake GameMediumArrayHash TableDesign
Solve → 497Find the Maximum Length of Valid Subsequence IIMediumArrayDynamic Programming
Solve → 498Maximum Average Subarray IEasyArraySliding Window
Solve → 499Ones and ZeroesMediumArrayStringDynamic Programming
Solve → 500Insert Delete GetRandom O(1) - Duplicates allowedHardArrayHash TableMath
Solve → 501Find the Safest Path in a GridMediumArrayBinary SearchBreadth-First Search
Solve → 502Accounts MergeMediumArrayHash TableString
Solve → 503Minimum Difference in Sums After Removal of ElementsHardArrayDynamic ProgrammingHeap (Priority Queue)
Solve → 504Linked List ComponentsMediumArrayHash TableLinked List
Solve → 505Bomb EnemyMediumArrayDynamic ProgrammingMatrix
Solve → 506Magnetic Force Between Two BallsMediumArrayBinary SearchSorting
Solve → 507Rearranging FruitsHardArrayHash TableGreedy
Solve → 508Longest Subsequence With Limited SumEasyArrayBinary SearchGreedy
Solve → 509Checking Existence of Edge Length Limited PathsHardArrayTwo PointersUnion-Find
Solve → 510Find K-th Smallest Pair DistanceHardArrayTwo PointersBinary Search
Solve → 511Shortest Distance from All BuildingsHardArrayBreadth-First SearchMatrix
Solve → 512Find a Peak Element IIMediumArrayBinary SearchMatrix
Solve → 513Next Greater Element IIMediumArrayStackMonotonic Stack
Solve → 514Number of Ways to Form a Target String Given a DictionaryHardArrayStringDynamic Programming
Solve → 515Search a 2D MatrixMediumArrayBinary SearchMatrix
Solve → 516Search Suggestions SystemMediumArrayStringBinary Search
Solve → 517Zero Array Transformation IIMediumArrayTwo PointersBinary Search
Solve → 518Remove Sub-Folders from the FilesystemMediumArrayStringDepth-First Search
Solve → 519Make Lexicographically Smallest Array by Swapping ElementsMediumArrayUnion-FindSorting
Solve → 520Minimum Number of Refueling StopsHardArrayDynamic ProgrammingGreedy
Solve → 521Sort ColorsMediumArrayTwo PointersSorting
Solve →