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.

Start
  1. 1Measure work and find items

    Trace arrays by hand, count operations, scan unsorted data and cut a sorted range in half.

    Checkpoint

    Choose between linear and binary search for three different data sets and justify the tradeoff.

  2. 2Choose a data structure

    Explore sorting, stacks, queues, linked nodes, and key lookups. Compare the operations each structure makes efficient.

    Checkpoint

    Implement an undo history and a first-duplicate check without extra scanning.

  3. 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.

    Checkpoint

    Draw a graph with a cycle, then trace BFS and DFS visit order by hand.

  4. 4Compare reusable problem patterns

    Use fixed windows and paired pointers for scans, then learn to merge sorted sequences and track priority.

    Checkpoint

    Choose a pattern for finding a fixed-length range and trace each update by hand.

  5. 5Optimize choices and reuse answers

    Calculate weighted shortest paths, explore branches through backtracking, and define subproblems with base cases and known dependencies.

    Checkpoint

    Derive the staircase recurrence and explain when a weighted graph needs a different approach from BFS.

  6. 6Solve advanced graph and range problems

    Find dependency order, connect groups, and keep range summaries as values change.

    Checkpoint

    Trace one dependency graph and explain when a range query needs a tree instead of a prefix array.

Finish