The NeetCode 150 LeetCode List

An expansion of the Blind 75 into eighteen topic groups, from arrays and hashing through advanced graphs and two-dimensional dynamic programming.

Easy
28
Medium
101
Hard
21
Patterns
22

Every entry, grouped by pattern

Each group is the pattern that most specifically solves those problems, so the list can be worked through a technique at a time instead of a problem at a time. Groups appear in the order the list itself introduces them.

Sorting (5)

Sorting
No.ProblemDifficulty
0217Contains DuplicateEasy
0242Valid AnagramEasy
0049Group AnagramsMedium
0056Merge IntervalsMedium
0252Meeting RoomsPremiumEasy

Hash Map (2)

Hash Map
No.ProblemDifficulty
0001Two SumEasy
2013Detect SquaresMedium

Heap / Priority Queue (10)

Heap / Priority Queue
No.ProblemDifficulty
0347Top K Frequent ElementsMedium
0703Kth Largest Element in a StreamEasy
1046Last Stone WeightEasy
0973K Closest Points to OriginMedium
0215Kth Largest Element in an ArrayMedium
0621Task SchedulerMedium
0295Find Median from Data StreamHard
0743Network Delay TimeMedium
0787Cheapest Flights Within K StopsMedium
1851Minimum Interval to Include Each QueryHard

Other (2)

Other
No.ProblemDifficulty
0271Encode and Decode StringsPremiumMedium
0057Insert IntervalMedium

Prefix Sum (2)

Prefix Sum
No.ProblemDifficulty
0238Product of Array Except SelfMedium
0253Meeting Rooms IIPremiumMedium

Matrix and Grid (8)

Matrix and Grid
No.ProblemDifficulty
0036Valid SudokuMedium
0074Search a 2D MatrixMedium
0417Pacific Atlantic Water FlowMedium
0994Rotting OrangesMedium
0286Walls and GatesPremiumMedium
0048Rotate ImageMedium
0054Spiral MatrixMedium
0073Set Matrix ZeroesMedium

Union-Find (9)

Union-Find
No.ProblemDifficulty
0128Longest Consecutive SequenceMedium
0200Number of IslandsMedium
0695Max Area of IslandMedium
0130Surrounded RegionsMedium
0684Redundant ConnectionMedium
0323Number of Connected Components in an Undirected GraphPremiumMedium
0261Graph Valid TreePremiumMedium
1584Min Cost to Connect All PointsMedium
0778Swim in Rising WaterHard

Two Pointers (8)

Two Pointers
No.ProblemDifficulty
0125Valid PalindromeEasy
0167Two Sum II - Input Array Is SortedMedium
00153SumMedium
0011Container With Most WaterMedium
0005Longest Palindromic SubstringMedium
0647Palindromic SubstringsMedium
0763Partition LabelsMedium
0202Happy NumberEasy

Stack (8)

Stack
No.ProblemDifficulty
0042Trapping Rain WaterHard
0020Valid ParenthesesEasy
0155Min StackMedium
0150Evaluate Reverse Polish NotationMedium
0739Daily TemperaturesMedium
0853Car FleetMedium
0084Largest Rectangle in HistogramHard
0678Valid Parenthesis StringMedium

Dynamic Programming (18)

Dynamic Programming
No.ProblemDifficulty
0121Best Time to Buy and Sell StockEasy
0070Climbing StairsEasy
0746Min Cost Climbing StairsEasy
0198House RobberMedium
0213House Robber IIMedium
0091Decode WaysMedium
0152Maximum Product SubarrayMedium
0416Partition Equal Subset SumMedium
0062Unique PathsMedium
1143Longest Common SubsequenceMedium
0309Best Time to Buy and Sell Stock with CooldownMedium
0518Coin Change IIMedium
0097Interleaving StringMedium
0115Distinct SubsequencesHard
0072Edit DistanceMedium
0312Burst BalloonsHard
0010Regular Expression MatchingHard
0053Maximum SubarrayMedium

Sliding Window (5)

Sliding Window
No.ProblemDifficulty
0003Longest Substring Without Repeating CharactersMedium
0424Longest Repeating Character ReplacementMedium
0567Permutation in StringMedium
0076Minimum Window SubstringHard
0239Sliding Window MaximumHard

Backtracking (11)

Backtracking
No.ProblemDifficulty
0022Generate ParenthesesMedium
0078SubsetsMedium
0039Combination SumMedium
0046PermutationsMedium
0090Subsets IIMedium
0040Combination Sum IIMedium
0079Word SearchMedium
0131Palindrome PartitioningMedium
0017Letter Combinations of a Phone NumberMedium
0051N-QueensHard
0494Target SumMedium

Binary Search (7)

Binary Search
No.ProblemDifficulty
0704Binary SearchEasy
0875Koko Eating BananasMedium
0153Find Minimum in Rotated Sorted ArrayMedium
0033Search in Rotated Sorted ArrayMedium
0981Time Based Key-Value StoreMedium
0004Median of Two Sorted ArraysHard
0300Longest Increasing SubsequenceMedium

Linked List (11)

Linked List
No.ProblemDifficulty
0206Reverse Linked ListEasy
0021Merge Two Sorted ListsEasy
0143Reorder ListMedium
0019Remove Nth Node From End of ListMedium
0138Copy List with Random PointerMedium
0002Add Two NumbersMedium
0141Linked List CycleEasy
0146LRU CacheMedium
0023Merge k Sorted ListsHard
0025Reverse Nodes in k-GroupHard
0355Design TwitterMedium

Bit Manipulation (7)

Bit Manipulation
No.ProblemDifficulty
0287Find the Duplicate NumberMedium
0136Single NumberEasy
0191Number of 1 BitsEasy
0338Counting BitsEasy
0190Reverse BitsEasy
0268Missing NumberEasy
0371Sum of Two IntegersMedium

Tree Traversal (15)

Tree Traversal
No.ProblemDifficulty
0226Invert Binary TreeEasy
0104Maximum Depth of Binary TreeEasy
0543Diameter of Binary TreeEasy
0110Balanced Binary TreeEasy
0100Same TreeEasy
0572Subtree of Another TreeEasy
0235Lowest Common Ancestor of a Binary Search TreeMedium
0102Binary Tree Level Order TraversalMedium
0199Binary Tree Right Side ViewMedium
1448Count Good Nodes in Binary TreeMedium
0098Validate Binary Search TreeMedium
0230Kth Smallest Element in a BSTMedium
0105Construct Binary Tree from Preorder and Inorder TraversalMedium
0124Binary Tree Maximum Path SumHard
0297Serialize and Deserialize Binary TreeHard

Trie (4)

Trie
No.ProblemDifficulty
0208Implement Trie (Prefix Tree)Medium
0211Design Add and Search Words Data StructureMedium
0212Word Search IIHard
0139Word BreakMedium

Breadth-First Search (3)

Breadth-First Search
No.ProblemDifficulty
0133Clone GraphMedium
0127Word LadderHard
0322Coin ChangeMedium

Topological Sort (4)

Topological Sort
No.ProblemDifficulty
0207Course ScheduleMedium
0210Course Schedule IIMedium
0269Alien DictionaryPremiumHard
0329Longest Increasing Path in a MatrixHard

Depth-First Search (1)

Depth-First Search
No.ProblemDifficulty
0332Reconstruct ItineraryHard

Greedy (6)

Greedy
No.ProblemDifficulty
0055Jump GameMedium
0045Jump Game IIMedium
0846Hand of StraightsMedium
1899Merge Triplets to Form Target TripletMedium
0134Gas StationMedium
0435Non-overlapping IntervalsMedium

Math and Number Theory (4)

Math and Number Theory
No.ProblemDifficulty
0066Plus OneEasy
0050Pow(x, n)Medium
0043Multiply StringsMedium
0007Reverse IntegerMedium

The NeetCode 150 is a published third-party selection, reproduced here by problem number in the order the list itself uses. 143 of its 150 entries carry a complete Python solution; the other 7 are LeetCode Premium (marked in the tables) or have no usable solution in our dataset, and are listed rather than dropped.

Eyes only

The NeetCode 150 does not cover the problem you get asked.

In the live round, Stealth Interview reads the problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer says. It's a desktop app for macOS and Windows, invisible to screen sharing.