DSA Interview Mastery
From arrays to dynamic programming in the order patterns build on each other — then prove it on the Top 150 and Hard 50.
Array
Hashing, prefix sums, two pointers, matrices and the array patterns behind most interview questions.
String
Two pointers, palindromes, character counting and string matching with KMP and rolling hashes.
Sliding Window
Fixed and variable windows for longest, shortest and counting subarray problems in linear time.
Binary Search
Lower/upper bounds, rotated arrays and binary search on the answer space.
Linked List
Fast and slow pointers, in-place reversal, merging and pointer-surgery designs like LRU.
Stack & Queue
Bracket matching, monotonic stacks and deques, expression evaluation and queue designs.
Tree
Traversals, BSTs, construction, path problems and tree DP with clean recursive contracts.
Heap
Top-K, two heaps for medians, k-way merges and greedy scheduling with priority queues.
Recursion & Backtracking
Subsets, combinations, permutations and constraint search — choose, explore, un-choose.
Greedy
Intervals, scheduling and reachability, with exchange arguments to prove each choice.
Graph
BFS/DFS, topological sort, shortest paths, MST, union-find, bridges and SCCs — in study order.
Dynamic Programming
1D, grid, knapsack, LCS, LIS, interval, tree, bitmask and digit DP across 24 patterns.
Top Interview 150
The classic Top Interview 150 list, grouped by pattern so you learn the idea, not the answer.
Hard 50
Fifty hard problems that mix patterns — the final boss level for interview preparation.