Popular DSA SheetInterview

NeetCode 150

A curated collection of problems focused on technical interview preparation.

150Problems
18Topics
StructuredLearning
Learning Path

Explore topics

18 sections

Problem Explorer

150

Practice in sequence.

01
Contains Duplicate
Arrays & Hashing
LC
02
Valid Anagram
Arrays & Hashing
LC
03
Two Sum
Arrays & Hashing
LC
04
Group Anagrams
Arrays & Hashing
LC
05
Top K Frequent Elements
Arrays & Hashing
LC
06
Encode and Decode Strings
Arrays & Hashing
LC
07
Product of Array Except Self
Arrays & Hashing
LC
08
Valid Sudoku
Arrays & Hashing
LC
09
Longest Consecutive Sequence
Arrays & Hashing
LC
10
Valid Palindrome
Two Pointers
LC
11
Two Sum II - Input Array Is Sorted
Two Pointers
LC
12
3Sum
Two Pointers
LC
13
Container With Most Water
Two Pointers
LC
14
Trapping Rain Water
Two Pointers
LC
15
Best Time to Buy and Sell Stock
Sliding Window
LC
16
Longest Substring Without Repeating Characters
Sliding Window
LC
17
Longest Repeating Character Replacement
Sliding Window
LC
18
Permutation in String
Sliding Window
LC
19
Minimum Window Substring
Sliding Window
LC
20
Sliding Window Maximum
Sliding Window
LC
21
Valid Parentheses
Stack
LC
22
Min Stack
Stack
LC
23
Evaluate Reverse Polish Notation
Stack
LC
24
Daily Temperatures
Stack
LC
25
Car Fleet
Stack
LC
26
Generate Parentheses
Backtracking
LC
27
Largest Rectangle in Histogram
Stack
LC
28
Binary Search
Binary Search
LC
29
Search a 2D Matrix
Binary Search
LC
30
Koko Eating Bananas
Binary Search
LC
31
Find Minimum in Rotated Sorted Array
Binary Search
LC
32
Search in Rotated Sorted Array
Binary Search
LC
33
Time Based Key-Value Store
Binary Search
LC
34
Median of Two Sorted Arrays
Binary Search
LC
35
Reverse Linked List
Linked List
LC
36
Merge Two Sorted Lists
Linked List
LC
37
Linked List Cycle
Linked List
LC
38
Reorder List
Linked List
LC
39
Remove Nth Node From End of List
Linked List
LC
40
Copy List with Random Pointer
Linked List
LC
41
Add Two Numbers
Linked List
LC
42
Find the Duplicate Number
Linked List
LC
43
LRU Cache
Linked List
LC
44
Merge k Sorted Lists
Linked List
LC
45
Reverse Nodes in k-Group
Linked List
LC
46
Invert Binary Tree
Trees
LC
47
Maximum Depth of Binary Tree
Trees
LC
48
Diameter of Binary Tree
Trees
LC
49
Balanced Binary Tree
Trees
LC
50
Same Tree
Trees
LC
51
Subtree of Another Tree
Trees
LC
52
Lowest Common Ancestor of a Binary Search Tree
Trees
LC
53
Binary Tree Level Order Traversal
Trees
LC
54
Binary Tree Right Side View
Trees
LC
55
Count Good Nodes in Binary Tree
Trees
LC
56
Validate Binary Search Tree
Trees
LC
57
Kth Smallest Element in a BST
Trees
LC
58
Construct Binary Tree from Preorder and Inorder Traversal
Trees
LC
59
Binary Tree Maximum Path Sum
Trees
LC
60
Serialize and Deserialize Binary Tree
Trees
LC
61
Kth Largest Element in a Stream
Heap / Priority Queue
LC
62
Last Stone Weight
Heap / Priority Queue
LC
63
K Closest Points to Origin
Heap / Priority Queue
LC
64
Kth Largest Element in an Array
Heap / Priority Queue
LC
65
Task Scheduler
Heap / Priority Queue
LC
66
Design Twitter
Heap / Priority Queue
LC
67
Find Median from Data Stream
Heap / Priority Queue
LC
68
Subsets
Backtracking
LC
69
Combination Sum
Backtracking
LC
70
Combination Sum II
Backtracking
LC
71
Permutations
Backtracking
LC
72
Subsets II
Backtracking
LC
73
Word Search
Backtracking
LC
74
Palindrome Partitioning
Backtracking
LC
75
Letter Combinations of a Phone Number
Backtracking
LC
76
N-Queens
Backtracking
LC
77
Implement Trie (Prefix Tree)
Tries
LC
78
Design Add and Search Words Data Structure
Tries
LC
79
Word Search II
Tries
LC
80
Number of Islands
Graphs
LC
81
Max Area of Island
Graphs
LC
82
Clone Graph
Graphs
LC
83
Walls and Gates
Graphs
LC
84
Rotting Oranges
Graphs
LC
85
Pacific Atlantic Water Flow
Graphs
LC
86
Surrounded Regions
Graphs
LC
87
Course Schedule
Graphs
LC
88
Course Schedule II
Graphs
LC
89
Graph Valid Tree
Graphs
LC
90
Number of Connected Components in an Undirected Graph
Graphs
LC
91
Redundant Connection
Graphs
LC
92
Word Ladder
Graphs
LC
93
Network Delay Time
Advanced Graphs
LC
94
Reconstruct Itinerary
Advanced Graphs
LC
95
Min Cost to Connect All Points
Advanced Graphs
LC
96
Swim in Rising Water
Advanced Graphs
LC
97
Alien Dictionary
Advanced Graphs
LC
98
Cheapest Flights Within K Stops
Advanced Graphs
LC
99
Climbing Stairs
1-D Dynamic Programming
LC
100
Min Cost Climbing Stairs
1-D Dynamic Programming
LC
101
House Robber
1-D Dynamic Programming
LC
102
House Robber II
1-D Dynamic Programming
LC
103
Longest Palindromic Substring
1-D Dynamic Programming
LC
104
Palindromic Substrings
1-D Dynamic Programming
LC
105
Decode Ways
1-D Dynamic Programming
LC
106
Coin Change
1-D Dynamic Programming
LC
107
Maximum Product Subarray
1-D Dynamic Programming
LC
108
Word Break
1-D Dynamic Programming
LC
109
Longest Increasing Subsequence
1-D Dynamic Programming
LC
110
Partition Equal Subset Sum
1-D Dynamic Programming
LC
111
Unique Paths
2-D Dynamic Programming
LC
112
Longest Common Subsequence
2-D Dynamic Programming
LC
113
Best Time to Buy and Sell Stock with Cooldown
2-D Dynamic Programming
LC
114
Coin Change II
2-D Dynamic Programming
LC
115
Target Sum
2-D Dynamic Programming
LC
116
Interleaving String
2-D Dynamic Programming
LC
117
Longest Increasing Path in a Matrix
2-D Dynamic Programming
LC
118
Distinct Subsequences
2-D Dynamic Programming
LC
119
Edit Distance
2-D Dynamic Programming
LC
120
Burst Balloons
2-D Dynamic Programming
LC
121
Regular Expression Matching
2-D Dynamic Programming
LC
122
Maximum Subarray
Greedy
LC
123
Jump Game
Greedy
LC
124
Jump Game II
Greedy
LC
125
Gas Station
Greedy
LC
126
Hand of Straights
Greedy
LC
127
Merge Triplets to Form Target Triplet
Greedy
LC
128
Partition Labels
Greedy
LC
129
Valid Parenthesis String
Greedy
LC
130
Insert Interval
Intervals
LC
131
Merge Intervals
Intervals
LC
132
Non-overlapping Intervals
Intervals
LC
133
Meeting Rooms
Intervals
LC
134
Meeting Rooms II
Intervals
LC
135
Minimum Interval to Include Each Query
Intervals
LC
136
Rotate Image
Math & Geometry
LC
137
Spiral Matrix
Math & Geometry
LC
138
Set Matrix Zeroes
Math & Geometry
LC
139
Happy Number
Math & Geometry
LC
140
Plus One
Math & Geometry
LC
141
Pow(x, n)
Math & Geometry
LC
142
Multiply Strings
Math & Geometry
LC
143
Detect Squares
Math & Geometry
LC
144
Single Number
Bit Manipulation
LC
145
Number of 1 Bits
Bit Manipulation
LC
146
Counting Bits
Bit Manipulation
LC
147
Reverse Bits
Bit Manipulation
LC
148
Missing Number
Bit Manipulation
LC
149
Sum of Two Integers
Bit Manipulation
LC
150
Reverse Integer
Bit Manipulation
LC