NeetCode 150
Coding Interview Problems.
All 150 problems organized by pattern. Filter by difficulty, search by name, or jump to a category.
Arrays & Hashing
Fundamental data structures. Master hash maps, sets, and array manipulation patterns.
Two Pointers
Left and right pointer technique for sorted arrays and palindromes.
Sliding Window
Dynamic window over sequences. Solve substring and subarray problems in O(n).
Stack
LIFO structure. Solve parentheses, monotonic stack, and expression evaluation problems.
Binary Search
Halve search space each step. Essential for sorted arrays and optimization problems.
Linked List
Node chains with pointer manipulation. Reversals, cycle detection, and two-pointer tricks.
Trees
Hierarchical structures. DFS, BFS, BST operations, and tree construction.
Tries
Prefix trees for word lookup and autocomplete. Build and search word dictionaries.
Heap / Priority Queue
Efficient max/min retrieval. Solve k-th element, median stream, and scheduling problems.
Backtracking
Explore all possibilities with pruning. Subsets, permutations, combinations.
Graphs
Vertices and edges. DFS, BFS, topological sort, and union-find algorithms.
Advanced Graphs
Dijkstra, Bellman-Ford, Kruskal/Prim MST, and Eulerian paths.
1D Dynamic Programming
Memoize overlapping subproblems in one dimension. Fibonacci, knapsack, LCS patterns.
2D Dynamic Programming
Grid-based DP. Edit distance, LCS, unique paths and string matching problems.
Greedy
Local optimum leads to global optimum. Interval scheduling, activity selection.
Intervals
Overlap detection and merging. Meeting rooms, calendar problems.
Math & Geometry
Number theory, matrix operations, and geometric algorithms.
Bit Manipulation
XOR, bit shifts, and masks. Solve space-optimized problems with bitwise logic.