Data Structures & Algorithms roadmap
Follow a sequence from analysis and searching to graphs and dynamic programming.
Learning path
Follow the stages in order. Expand a stage for its goal and checkpoint, or choose a topic to open its lesson.
1Measure work and find items
Trace arrays by hand, count operations, scan unsorted data and cut a sorted range in half.
CheckpointChoose between linear and binary search for three different data sets and justify the tradeoff.
2Choose a data structure
Explore sorting, stacks, queues, linked nodes, and key lookups. Compare the operations each structure makes efficient.
CheckpointImplement an undo history and a first-duplicate check without extra scanning.
3Explore trees and graphs
Follow recursive calls through a tree before representing graph connections with adjacency lists. Compare visiting by distance with following one branch deeply.
CheckpointDraw a graph with a cycle, then trace BFS and DFS visit order by hand.
4Compare reusable problem patterns
Use fixed windows and paired pointers for scans, then learn to merge sorted sequences and track priority.
CheckpointChoose a pattern for finding a fixed-length range and trace each update by hand.
5Optimize choices and reuse answers
Calculate weighted shortest paths, explore branches through backtracking, and define subproblems with base cases and known dependencies.
CheckpointDerive the staircase recurrence and explain when a weighted graph needs a different approach from BFS.
6Solve advanced graph and range problems
Find dependency order, connect groups, and keep range summaries as values change.
CheckpointTrace one dependency graph and explain when a range query needs a tree instead of a prefix array.