LeetCode The Hard Way

Bloomberg

1239 problems

ProblemDifficultyFrequency Topics
3042. Count Prefix and Suffix Pairs IEasy13.5%
ArrayStringTrieRolling HashString MatchingHash Function
2116. Check if a Parentheses String Can Be ValidMedium13.5%
StringStackGreedyBracket Sequences
2657. Find the Prefix Common Array of Two ArraysMedium13.5%
ArrayHash TableBit Manipulation
Merge Two Binary TreesEasy13.5%
TreeDepth-First SearchBreadth-First SearchBinary Tree
1293. Shortest Path in a Grid with Obstacles EliminationHard13.5%
ArrayBreadth-First SearchMatrix
Shortest Distance from All BuildingsHard13.5%
ArrayBreadth-First SearchMatrix
581. Shortest Unsorted Continuous SubarrayMedium13.5%
ArrayTwo PointersStackGreedySortingMonotonic Stack
3160. Find the Number of Distinct Colors Among the BallsMedium13.5%
ArrayHash TableSimulation
Construct Quad TreeMedium13.5%
ArrayDivide and ConquerTreeMatrix
1352. Product of the Last K NumbersMedium13.5%
ArrayMathDesignData StreamPrefix Sum
Count Salary CategoriesMedium13.5%
Database
889. Construct Binary Tree from Preorder and Postorder TraversalMedium13.5%
ArrayHash TableDivide and ConquerTreeBinary Tree
873. Length of Longest Fibonacci SubsequenceMedium13.5%
ArrayHash TableDynamic Programming
2579. Count Total Number of Colored CellsMedium13.5%
Math
2523. Closest Prime Numbers in RangeMedium13.5%
MathNumber TheoryPrimality TestSieve TheoryPrime Number Sieve
286. Walls and GatesMedium13.5%
ArrayBreadth-First SearchMatrix
3208. Alternating Groups IIMedium13.5%
ArraySliding Window
417. Pacific Atlantic Water FlowMedium13.5%
ArrayDepth-First SearchBreadth-First SearchMatrix
3453. Separate Squares IMedium13.5%
ArrayBinary Search
1123. Lowest Common Ancestor of Deepest LeavesMedium13.5%
Hash TableTreeDepth-First SearchBreadth-First SearchBinary TreeBinary LiftingLowest Common AncestorDP on Trees
3396. Minimum Number of Operations to Make Elements in Array DistinctEasy13.5%
ArrayHash Table
1399. Count Largest GroupEasy13.5%
Hash TableMathCounting
832. Flipping an ImageEasy13.5%
ArrayTwo PointersBit ManipulationMatrixSimulation
2974. Minimum Number GameEasy13.5%
ArraySortingHeap (Priority Queue)Simulation
3310. Remove Methods From ProjectMedium13.5%
Depth-First SearchBreadth-First SearchGraph Theory
AlgoMonsterVisit ZapplyCertGarden
Your logo here
Become a sponsor
Buy Me A Coffee