Work through the core coding-interview patterns, from arrays and two pointers to graphs and DP.
A preview of each phase. Sign in and start the roadmap to see every topic.
Learn how LeetCode practice works, why patterns matter and pick the language you will solve in.
Start with the most common patterns: lookups with hash maps and scanning with two pointers.
Use stacks for nested and monotonic problems and halve the search space with binary search.
Track moving ranges over sequences and get fluent at pointer work on linked lists.
Traverse and reason about binary trees, and use priority queues for top-k and streaming problems.
Explore every option systematically and store words in prefix trees for fast lookups.
Model problems as graphs and apply BFS, DFS, topological sort and shortest-path techniques.
Break problems into overlapping subproblems, first in one dimension and then in two.
Make locally best choices that add up, and sort and merge ranges cleanly.
Finish with problems solved by bit tricks, matrix handling and a little number theory.