Roadmap
- Arrays & Hashing
- Two Pointers
- Stack
- Binary Search
- Sliding Window
- Linked List
- Trees
- Tries
- Heap / Priority Queue
- Backtracking
- Graphs
- 1-D Dynamic Programming
- Intervals
- Greedy
- Advanced Graphs
- 2-D Dynamic Programming
- Bit Manipulation
- Math & Geometry
Blind 75
Blind 75 LeetCode is a carefully curated collection of 75 essential coding interview problems that cover the most important data structures and algorithms. These problems have become a popular interview preparation resource and have helped thousands of developers land software engineering roles at top tech companies such as Google, Amazon, Microsoft, Meta, and many others.
Contents
- Arrays & Hashing (8)
- Two Pointers (3)
- Sliding Window (4)
- Stack (1)
- Binary Search (2)
- Linked List (6)
- Trees (11)
- Heap / Priority Queue (1)
- Backtracking (2)
- Tries (3)
- Graphs (6)
- Advanced Graphs (1)
- 1-D Dynamic Programming (10)
- 2-D Dynamic Programming (2)
- Greedy (2)
- Intervals (5)
- Math & Geometry (3)
- Bit Manipulation (5)
Total Questions: 75
Difficulty
| Difficulty | Problems |
|---|---|
| Easy | 19 |
| Medium | 49 |
| Hard | 7 |
| Total | 75 |
Blind 75
1. Arrays & Hashing (8)
- Contains Duplicate
- Valid Anagram
- Two Sum
- Group Anagrams
- Top K Frequent Elements
- Product of Array Except Self
- Valid Sudoku
- Longest Consecutive Sequence
2. Two Pointers (3)
- Valid Palindrome
- 3Sum
- Container With Most Water
3. Sliding Window (4)
- Best Time to Buy and Sell Stock
- Longest Substring Without Repeating Characters
- Longest Repeating Character Replacement
- Minimum Window Substring
4. Stack (1)
- Valid Parentheses
5. Binary Search (2)
- Find Minimum in Rotated Sorted Array
- Search in Rotated Sorted Array
6. Linked List (6)
- Reverse Linked List
- Linked List Cycle
- Merge Two Sorted Lists
- Merge K Sorted Lists
- Remove Nth Node From End of List
- Reorder List
7. Trees (11)
- Invert Binary Tree
- Maximum Depth of Binary Tree
- Diameter of Binary Tree
- Balanced Binary Tree
- Same Tree
- Subtree of Another Tree
- Lowest Common Ancestor of a Binary Search Tree
- Binary Tree Level Order Traversal
- Binary Tree Right Side View
- Count Good Nodes in Binary Tree
- Validate Binary Search Tree
8. Heap / Priority Queue (1)
- Kth Largest Element in an Array
9. Backtracking (2)
- Combination Sum
- Word Search
10. Tries (3)
- Implement Trie (Prefix Tree)
- Design Add and Search Words Data Structure
- Word Search II
11. Graphs (6)
- Number of Islands
- Clone Graph
- Pacific Atlantic Water Flow
- Course Schedule
- Graph Valid Tree
- Number of Connected Components in an Undirected Graph
12. Advanced Graphs (1)
- Alien Dictionary
13. 1-D Dynamic Programming (10)
- Climbing Stairs
- House Robber
- House Robber II
- Longest Palindromic Substring
- Palindromic Substrings
- Decode Ways
- Coin Change
- Maximum Product Subarray
- Word Break
- Longest Increasing Subsequence
14. 2-D Dynamic Programming (2)
- Unique Paths
- Longest Common Subsequence
15. Greedy (2)
- Maximum Subarray
- Jump Game
16. Intervals (5)
- Insert Interval
- Merge Intervals
- Non-overlapping Intervals
- Meeting Rooms
- Meeting Rooms II
17. Math & Geometry (3)
- Rotate Image
- Spiral Matrix
- Set Matrix Zeroes
18. Bit Manipulation (5)
- Sum of Two Integers
- Number of 1 Bits
- Counting Bits
- Missing Number
- Reverse Bits
NeetCode 150
The NeetCode 150 is the Blind 75 + 75 more problems.
It is the perfect list for people already familiar with basic algorithms & data structures.
Contents
- Arrays & Hashing (9)
- Two Pointers (5)
- Sliding Window (6)
- Stack (7)
- Binary Search (7)
- Linked List (11)
- Trees (15)
- Tries (3)
- Heap / Priority Queue (7)
- Backtracking (10)
- Graphs (13)
- Advanced Graphs (6)
- 1-D Dynamic Programming (12)
- 2-D Dynamic Programming (11)
- Greedy (8)
- Intervals (6)
- Math & Geometry (8)
- Bit Manipulation (7)
Difficulty Level
| Difficulty | Progress |
|---|---|
| Easy | 28 |
| Medium | 101 |
| Hard | 21 |
| Total | 150 |
NeetCode 150
1. Arrays & Hashing (9)
- Contains Duplicate
- Valid Anagram
- Two Sum
- Group Anagrams
- Top K Frequent Elements
- Product of Array Except Self
- Valid Sudoku
- Encode and Decode Strings
- Longest Consecutive Sequence
2. Two Pointers (5)
- Valid Palindrome
- Two Sum II - Input Array Is Sorted
- 3Sum
- Container With Most Water
- Trapping Rain Water
3. Sliding Window (6)
- Best Time to Buy and Sell Stock
- Longest Substring Without Repeating Characters
- Longest Repeating Character Replacement
- Permutation in String
- Minimum Window Substring
- Sliding Window Maximum
4. Stack (6)
- Valid Parentheses
- Min Stack
- Evaluate Reverse Polish Notation
- Generate Parentheses
- Daily Temperatures
- Car Fleet
- Largest Rectangle in Histogram
5. Binary Search (7)
- Binary Search
- Search a 2D Matrix
- Koko Eating Bananas
- Find Minimum in Rotated Sorted Array
- Search in Rotated Sorted Array
- Time Based Key-Value Store
- Median of Two Sorted Arrays
6. Linked List (11)
- Reverse Linked List
- Merge Two Sorted Lists
- Reorder List
- Remove Nth Node From End of List
- Copy List With Random Pointer
- Add Two Numbers
- Linked List Cycle
- Find the Duplicate Number
- LRU Cache
- Merge K Sorted Lists
- Reverse Nodes in K-Group
7. Trees (15)
- Invert Binary Tree
- Maximum Depth of Binary Tree
- Diameter of Binary Tree
- Balanced Binary Tree
- Same Tree
- Subtree of Another Tree
- Lowest Common Ancestor of a Binary Search Tree
- Binary Tree Level Order Traversal
- Binary Tree Right Side View
- Count Good Nodes in Binary Tree
- Validate Binary Search Tree
- Kth Smallest Element in a BST
- Construct Binary Tree from Preorder and Inorder Traversal
- Binary Tree Maximum Path Sum
- Serialize and Deserialize Binary Tree
8. Tries (3)
- Implement Trie (Prefix Tree)
- Design Add and Search Words Data Structure
- Word Search II
9. Heap / Priority Queue (7)
- Kth Largest Element in a Stream
- Last Stone Weight
- K Closest Points to Origin
- Kth Largest Element in an Array
- Task Scheduler
- Design Twitter
- Find Median from Data Stream
10. Backtracking (10)
- Subsets
- Combination Sum
- Permutations
- Subsets II
- Combination Sum II
- Word Search
- Palindrome Partitioning
- Letter Combinations of a Phone Number
- N-Queens
- Word Search II
11. Graphs (13)
- Number of Islands
- Clone Graph
- Max Area of Island
- Pacific Atlantic Water Flow
- Surrounded Regions
- Rotting Oranges
- Walls and Gates
- Course Schedule
- Course Schedule II
- Graph Valid Tree
- Number of Connected Components in an Undirected Graph
- Redundant Connection
- Word Ladder
12. Advanced Graphs (6)
- Reconstruct Itinerary
- Min Cost to Connect All Points
- Network Delay Time
- Swim in Rising Water
- Alien Dictionary
- Cheapest Flights Within K Stops
13. 1-D Dynamic Programming (12)
- Climbing Stairs
- Min Cost Climbing Stairs
- House Robber
- House Robber II
- Longest Palindromic Substring
- Palindromic Substrings
- Decode Ways
- Coin Change
- Maximum Product Subarray
- Word Break
- Longest Increasing Subsequence
- Partition Equal Subset Sum
14. 2-D Dynamic Programming (11)
- Unique Paths
- Longest Common Subsequence
- Best Time to Buy and Sell Stock with Cooldown
- Coin Change II
- Target Sum
- Interleaving String
- Longest Increasing Path in a Matrix
- Distinct Subsequences
- Edit Distance
- Burst Balloons
- Regular Expression Matching
15. Greedy (8)
- Maximum Subarray
- Jump Game
- Jump Game II
- Gas Station
- Hand of Straights
- Merge Triplets to Form Target Triplet
- Partition Labels
- Valid Parenthesis String
16. Intervals (6)
- Insert Interval
- Merge Intervals
- Non-Overlapping Intervals
- Meeting Rooms
- Meeting Rooms II
- Minimum Interval to Include Each Query
17. Math & Geometry (8)
- Rotate Image
- Spiral Matrix
- Set Matrix Zeroes
- Happy Number
- Plus One
- Pow(x, n)
- Multiply Strings
- Detect Squares
18. Bit Manipulation (7)
- Single Number
- Number of 1 Bits
- Counting Bits
- Reverse Bits
- Missing Number
- Sum of Two Integers
NeetCode 250
The NeetCode 250 is the NeetCode 150 plus 100 more problems.
It is the most beginner-friendly list, intended for people completely new to algorithms.
Contents
- Arrays & Hashing (22)
- Two Pointers (13)
- Sliding Window (9)
- Stack (14)
- Binary Search (14)
- Linked List (14)
- Trees (23)
- Heap / Priority Queue (12)
- Backtracking (17)
- Tries (4)
- Graphs (21)
- Advanced Graphs (10)
- 1-D Dynamic Programming (17)
- 2-D Dynamic Programming (16)
- Greedy (14)
- Intervals (7)
- Math & Geometry (13)
- Bit Manipulation (10)
Difficulty
| Difficulty | Problems |
|---|---|
| Easy | 60 |
| Medium | 155 |
| Hard | 35 |
| Total | 250 |
The NeetCode 250
1. Arrays & Hashing (22)
- Contains Duplicate
- Valid Anagram
- Two Sum
- Group Anagrams
- Top K Frequent Elements
- Encode and Decode Strings
- Product of Array Except Self
- Valid Sudoku
- Longest Consecutive Sequence
- Replace Elements With Greatest Element On Right Side
- Is Subsequence
- Length of Last Word
- Longest Common Prefix
- Find Pivot Index
- Majority Element
- Design HashSet
- Design HashMap
- First Unique Character in a String
- Intersection of Two Arrays
- Range Sum Query - Immutable
- Sort an Array
- Sort Colors
2. Two Pointers (13)
- Valid Palindrome
- Two Sum II - Input Array Is Sorted
- 3Sum
- Container With Most Water
- Trapping Rain Water
- Remove Duplicates From Sorted Array
- Move Zeroes
- Squares of a Sorted Array
- Is Subsequence
- Reverse String
- Merge Strings Alternately
- Backspace String Compare
- Boats to Save People
3. Sliding Window (9)
- Best Time to Buy and Sell Stock
- Longest Substring Without Repeating Characters
- Longest Repeating Character Replacement
- Permutation in String
- Minimum Window Substring
- Sliding Window Maximum
- Find All Anagrams in a String
- Maximum Average Subarray I
- Longest Nice Subarray
4. Stack (14)
- Valid Parentheses
- Min Stack
- Evaluate Reverse Polish Notation
- Generate Parentheses
- Daily Temperatures
- Car Fleet
- Largest Rectangle in Histogram
- Asteroid Collision
- Decode String
- Remove All Adjacent Duplicates In String II
- Online Stock Span
- Basic Calculator
- Simplify Path
- Maximal Rectangle
5. Binary Search (14)
- Binary Search
- Search a 2D Matrix
- Koko Eating Bananas
- Find Minimum in Rotated Sorted Array
- Search in Rotated Sorted Array
- Time Based Key-Value Store
- Median of Two Sorted Arrays
- Find Peak Element
- Search a 2D Matrix II
- Find First and Last Position of Element in Sorted Array
- Capacity To Ship Packages Within D Days
- Split Array Largest Sum
- Find the Duplicate Number
- H-Index
6. Linked List (14)
- Reverse Linked List
- Merge Two Sorted Lists
- Reorder List
- Remove Nth Node From End of List
- Copy List With Random Pointer
- Add Two Numbers
- Linked List Cycle
- Find the Duplicate Number
- LRU Cache
- Merge K Sorted Lists
- Reverse Nodes in K-Group
- Design Linked List
- Intersection of Two Linked Lists
- Palindrome Linked List
7. Trees (23)
- Invert Binary Tree
- Maximum Depth of Binary Tree
- Diameter of Binary Tree
- Balanced Binary Tree
- Same Tree
- Subtree of Another Tree
- Lowest Common Ancestor of a Binary Search Tree
- Binary Tree Level Order Traversal
- Binary Tree Right Side View
- Count Good Nodes in Binary Tree
- Validate Binary Search Tree
- Kth Smallest Element in a BST
- Construct Binary Tree from Preorder and Inorder Traversal
- Binary Tree Maximum Path Sum
- Serialize and Deserialize Binary Tree
- Implement Trie (Prefix Tree)
- Binary Tree Zigzag Level Order Traversal
- Populating Next Right Pointers in Each Node
- Construct Binary Tree from Inorder and Postorder Traversal
- Kth Largest Element in a BST
- Convert Sorted Array to Binary Search Tree
- Binary Search Tree Iterator
- Recover Binary Search Tree
8. Heap / Priority Queue (12)
- Kth Largest Element in a Stream
- Last Stone Weight
- K Closest Points to Origin
- Kth Largest Element in an Array
- Task Scheduler
- Design Twitter
- Find Median from Data Stream
- Single-Threaded CPU
- Reorganize String
- Longest Happy String
- Car Pooling
- IPO
9. Backtracking (17)
- Subsets
- Combination Sum
- Combination Sum II
- Permutations
- Letter Combinations of a Phone Number
- Word Search
- Palindrome Partitioning
- N-Queens
- N-Queens II
- Generate Parentheses
- Combination Sum III
- Letter Case Permutation
- Matchsticks to Square
- Partition to K Equal Sum Subsets
- Word Search II
- Sum of All Subset XOR Totals
- Beautiful Arrangement
10. Tries (4)
- Implement Trie (Prefix Tree)
- Design Add and Search Words Data Structure
- Word Search II
- Maximum XOR for Each Query
11. Graphs (21)
- Number of Islands
- Max Area of Island
- Clone Graph
- Walls and Gates
- Rotting Oranges
- Pacific Atlantic Water Flow
- Surrounded Regions
- Course Schedule
- Course Schedule II
- Graph Valid Tree
- Number of Connected Components in an Undirected Graph
- Redundant Connection
- Word Ladder
- Find the Town Judge
- Open the Lock
- Course Schedule IV
- Accounts Merge
- Evaluate Division
- Minimum Height Trees
- Network Delay Time
- Reconstruct Itinerary
12. Advanced Graphs (10)
- Network Delay Time
- Reconstruct Itinerary
- Min Cost to Connect All Points
- Swim in Rising Water
- Alien Dictionary
- Cheapest Flights Within K Stops
- Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- Build a Matrix With Conditions
- Path With Minimum Effort
- Greatest Common Divisor Traversal
13. 1-D Dynamic Programming (17)
- Climbing Stairs
- Min Cost Climbing Stairs
- House Robber
- House Robber II
- Longest Palindromic Substring
- Palindromic Substrings
- Decode Ways
- Coin Change
- Maximum Product Subarray
- Word Break
- Longest Increasing Subsequence
- Partition Equal Subset Sum
- N-th Tribonacci Number
- House Robber III
- Combination Sum IV
- Perfect Squares
- Stone Game
14. 2-D Dynamic Programming (16)
- Unique Paths
- Longest Common Subsequence
- Best Time to Buy and Sell Stock with Cooldown
- Coin Change II
- Target Sum
- Interleaving String
- Longest Increasing Path in a Matrix
- Distinct Subsequences
- Edit Distance
- Burst Balloons
- Regular Expression Matching
- Triangle
- Minimum Path Sum
- Maximal Square
- Partition Equal Subset Sum
- Stone Game II
15. Greedy (14)
- Maximum Subarray
- Jump Game
- Jump Game II
- Gas Station
- Hand of Straights
- Merge Triplets to Form Target Triplet
- Partition Labels
- Valid Parenthesis String
- Maximum Length of Subarray With Positive Product
- Candy
- Lemonade Change
- Maximum Units on a Truck
- Non-overlapping Intervals
- Minimum Number of Arrows to Burst Balloons
16. Intervals (7)
- Insert Interval
- Merge Intervals
- Non-overlapping Intervals
- Meeting Rooms
- Meeting Rooms II
- Minimum Number of Arrows to Burst Balloons
- Interval List Intersections
17. Math & Geometry (13)
- Rotate Image
- Spiral Matrix
- Set Matrix Zeroes
- Happy Number
- Plus One
- Pow(x, n)
- Multiply Strings
- Detect Squares
- Max Points on a Line
- Rectangle Area
- Greatest Common Divisor of Strings
- Nth Digit
- Roman to Integer
18. Bit Manipulation (10)
- Single Number
- Number of 1 Bits
- Counting Bits
- Reverse Bits
- Missing Number
- Sum of Two Integers
- Reverse Integer
- Bitwise AND of Numbers Range
- Power of Two
- Add Binary