DSA Revision Sheets

High-value revision notes for coding interviews.

1. Arrays & Strings

Two pointers, sliding window, prefix sum, hashing, binary search patterns.

2. Linked List

Reverse list, cycle detection (Floyd), merge sorted lists, middle node, k-th from end.

3. Stack & Queue

Monotonic stack, next greater element, valid parentheses, BFS queue usage.

4. Trees & BST

DFS traversals, BFS levels, height/diameter, LCA, validate BST, recursion templates.

5. Graphs

BFS/DFS, topological sort, shortest path basics, connected components, union-find.

6. Recursion & Backtracking

Subsets, permutations, N-Queens, combination sum, pruning strategy.

7. Dynamic Programming

1D/2D state design, transition formula, base cases, memoization vs tabulation.

8. Time & Space Complexity

Big-O estimation, worst vs average case, trade-offs, optimization techniques.

Practice DSA Quiz Now