LeetCode Top 75

Updated: 2024-03-12
4 min read
[]

Array / String

#ProblemDifficultySlides/Video
11768. Merge Strings AlternatelyEasy✅ ✅
21071. Greatest Common Divisor of StringsEasy✅ ✅
31431. Kids With the Greatest Number of CandiesEasy✅ ✅
4605. Can Place FlowersEasy
5345. Reverse Vowels of a StringEasy
6151. Reverse Words in a StringMedium
7238. Product of Array Except SelfMedium
8334. Increasing Triplet SubsequenceMedium
9443. String CompressionMedium

Two Pointers

#ProblemDifficulty
10283. Move ZeroesEasy
11392. Is SubsequenceEasy
1211. Container With Most WaterMedium
131679. Max Number of K-Sum PairsMedium

Sliding Window

#ProblemDifficulty
14643. Maximum Average Subarray IEasy
151456. Maximum Number of Vowels in a Substring of Given LengthMedium
161004. Max Consecutive Ones IIIMedium
171493. Longest Subarray of 1’s After Deleting One ElementMedium

Prefix Sum

#ProblemDifficultySlides/Video
181732. Find the Highest AltitudeEasy
19724. Find Pivot IndexEasy

Hash Map / Set

#ProblemDifficulty
202215. Find the Difference of Two ArraysEasy
211207. Unique Number of OccurrencesEasy
221657. Determine if Two Strings Are CloseMedium
232352. Equal Row and Column PairsMedium

Stack

#ProblemDifficulty
242390. Removing Stars From a StringMedium
25735. Asteroid CollisionMedium
26394. Decode StringMedium

Queue

#ProblemDifficulty
27933. Number of Recent CallsEasy
28649. Dota2 SenateMedium

Linked List

#ProblemDifficulty
31141. Linked List CycleEasy
31206. Reverse Linked ListEasy
292095. Delete the Middle Node of a Linked ListMedium
30328. Odd Even Linked ListMedium
322130. Maximum Twin Sum of a Linked ListMedium

Binary Tree - DFS

#ProblemDifficulty
33104. Maximum Depth of Binary TreeEasy
34872. Leaf-Similar TreesEasy
351448. Count Good Nodes in Binary TreeMedium
36437. Path Sum IIIMedium
371372. Longest ZigZag Path in a Binary TreeMedium
38236. Lowest Common Ancestor of a Binary TreeMedium

Binary Tree - BFS

#ProblemDifficulty
39199. Binary Tree Right Side ViewMedium
401161. Maximum Level Sum of a Binary TreeMedium

Binary Search Tree

#ProblemDifficulty
41700. Search in a Binary Search TreeEasy
42450. Delete Node in a BSTMedium

Graphs - DFS

#ProblemDifficulty
43841. Keys and RoomsMedium
44547. Number of ProvincesMedium
451466. Reorder Routes to Make All Paths Lead to the City ZeroMedium
46399. Evaluate DivisionMedium

Graphs - BFS

#ProblemDifficulty
471926. Nearest Exit from Entrance in MazeMedium
48994. Rotting OrangesMedium

Heap / Priority Queue

#ProblemDifficulty
49Kth Largest Element in an ArrayMedium
50Smallest Number in Infinite SetMedium
51Maximum Subsequence ScoreMedium
52Total Cost to Hire K WorkersMedium
#ProblemDifficulty
53Guess Number Higher or LowerEasy
54Successful Pairs of Spells and PotionsMedium
55162. Find Peak ElementMedium
56Koko Eating BananasMedium

Backtracking

#ProblemDifficulty
5717. Letter Combinations of a Phone NumberMedium
58Combination Sum IIIMedium

DP - 1D

#ProblemDifficulty
59N-th Tribonacci NumberEasy
60Min Cost Climbing StairsEasy
61House RobberMedium
62Domino and Tromino TilingMedium

DP - Multidimensional

#ProblemDifficulty
63Unique PathsMedium
64Longest Common SubsequenceMedium
65Best Time to Buy and Sell Stock with Transaction FeeMedium
66Edit DistanceMedium

Bit Manipulation

#ProblemDifficulty
67Counting BitsEasy
68136. Single NumberEasy
69Minimum Flips to Make a OR b Equal to cMedium

Trie

#ProblemDifficulty
70208. Implement Trie (Prefix Tree)Medium
71Search Suggestions SystemMedium

Intervals

#ProblemDifficulty
72435. Non-overlapping IntervalsMedium
73Minimum Number of Arrows to Burst BalloonsMedium

Monotonic Stack

#ProblemDifficulty
74Daily TemperaturesMedium
75Online Stock SpanMedium
Previous Plan