DSA 75 Visual Roadmap
Step-by-step pattern progression path. Master each pattern in order from foundational pointer techniques to advanced dynamic programming.
Two Pointers
Attack the problem from two angles. Optimize O(n²) to O(n).
Attack the problem from two angles. Optimize O(n²) to O(n).
Sliding Window
Efficiently process contiguous subarrays and substrings.
Efficiently process contiguous subarrays and substrings.
Stack
LIFO mastery — parentheses, monotonic stacks, and expression parsing.
LIFO mastery — parentheses, monotonic stacks, and expression parsing.
Binary Search
Divide and conquer to achieve O(log n) search efficiency.
Divide and conquer to achieve O(log n) search efficiency.
Intervals
Merge, insert, and process overlapping time ranges.
Merge, insert, and process overlapping time ranges.
Linked List
Pointer manipulation, cycle detection, and list reversal.
Pointer manipulation, cycle detection, and list reversal.
Heap / Priority Queue
Efficient min/max element access for streaming and top-K problems.
Efficient min/max element access for streaming and top-K problems.
DFS — Trees
Recursion on tree structures: depth, paths, and validation.
Recursion on tree structures: depth, paths, and validation.
BFS — Level Order
Layer-by-layer traversal for shortest paths and level processing.
Layer-by-layer traversal for shortest paths and level processing.
Graphs
Connectivity, topological sort, and cycle detection.
Connectivity, topological sort, and cycle detection.
Backtracking
Explore all possibilities and prune invalid paths.
Explore all possibilities and prune invalid paths.
Dynamic Programming
Optimal substructure meets overlapping subproblems.
Optimal substructure meets overlapping subproblems.
Greedy
Locally optimal choices that lead to globally optimal solutions.
Locally optimal choices that lead to globally optimal solutions.
Trie
Prefix tree for efficient string search and autocomplete.
Prefix tree for efficient string search and autocomplete.
Prefix Sum
Precompute once, then answer any range query in constant time.
Precompute once, then answer any range query in constant time.
Matrices
In-place manipulation, spiral traversal, and grid transformations.
In-place manipulation, spiral traversal, and grid transformations.
