Syllabus

  1. 01NodesThe building block of linked structures: what nodes and links are, how chains of nodes live in memory, what orphaned nodes are, and how to create, walk, insert and remove nodes in Python.2 lessons
    1. 01What is a node?
    2. 02Nodes in Python
  2. 02Linked listsHow linked lists work and what their operations cost compared with Python lists, a LinkedList class with iteration, and the classic search, insert, remove and in-place reverse operations.3 lessons
    1. 01How linked lists work
    2. 02Building a linked list class
    3. 03Searching, inserting and removing
  3. 03StacksLast in, first out: push, pop and peek, underflow and overflow, lists as stacks and a bracket checker, a node-based Stack class with a size limit, and a Towers of Hanoi project with a playable game, a recursive solver and an iterative solver built on a stack.4 lessons
    1. 01Stacks: last in, first out
    2. 02Building a stack class
    3. 03Project: the Towers of Hanoi game
    4. 04Project: solving Hanoi with recursion and a stack
  4. 04QueuesFirst in, first out: enqueue, dequeue and peek, collections.deque and bounded buffers, a node-based Queue class with head and tail references, a car-wash queue simulation, and a guide to choosing between linear structures.4 lessons
    1. 01Queues: first in, first out
    2. 02Building a queue class
    3. 03Simulating a queue
    4. 04Choosing a linear structure