Syllabus

  1. 01Nodes and linked listsBuild data structures from nodes: singly linked lists with insertion, traversal and removal, two-pointer techniques, and doubly linked lists.5 lessons
    1. 01Data structures and nodes
    2. 02Linked lists
    3. 03Finding and removing nodes
    4. 04Two-pointer techniques
    5. 05Doubly linked lists
  2. 02Stacks and queuesImplement FIFO queues and LIFO stacks on top of nodes, handle overflow and underflow, then use them in practice: postfix evaluation, round-robin scheduling and browser history.4 lessons
    1. 01Queues
    2. 02Stacks
    3. 03Stacks and queues in practice
    4. 04Project: browser history
  3. 03Hash mapsUnderstand hashing, compression, collisions and load factor, then implement a hash map with separate chaining that grows automatically.3 lessons
    1. 01How hash maps work
    2. 02Implementing a hash map
    3. 03Project: a hash map that grows
  4. 04RecursionSolve problems by reducing them to smaller copies: base cases and the call stack, branching recursion over nested data, converting recursion to loops, and memoization.4 lessons
    1. 01Thinking recursively
    2. 02Recursion on branching problems
    3. 03Recursion versus iteration
    4. 04Memoization
  5. 05Complexity and searchingDescribe how algorithms scale with Big O, analyze real Python code including the cost of built-in operations and memory, and implement linear search and naive pattern search.4 lessons
    1. 01Asymptotic notation and Big O
    2. 02Analyzing Python code
    3. 03Brute force and linear search
    4. 04Naive pattern search
  6. 06Sorting algorithmsImplement and analyze bubble sort, merge sort and quicksort, measure their work by counting comparisons, and see why Python's built-in sort is the right default.4 lessons
    1. 01Bubble sort
    2. 02Merge sort
    3. 03Quicksort
    4. 04Comparing sorting algorithms
  7. 07Trees, searching and heapsModel hierarchies with trees, traverse them breadth-first and depth-first, search sorted data with binary search and binary search trees, and build heaps for priority queues and heapsort.6 lessons
    1. 01Trees
    2. 02Breadth-first and depth-first traversal
    3. 03Binary search
    4. 04Binary search trees
    5. 05Heaps
    6. 06Heapsort and heapq
  8. 08Graphs and pathfindingRepresent networks as graphs, search them depth-first and breadth-first, find cheapest routes with Dijkstra's algorithm, and steer the search toward a goal with A*.4 lessons
    1. 01Graphs
    2. 02Searching graphs: DFS and BFS
    3. 03Dijkstra's algorithm
    4. 04A* pathfinding