02Chapter 2: Arrays and dynamic arraysThis chapter assumes you can write loops and functions, know what a reference (pointer) is, and have met O(1) and O(n) notation. It covers the array side of the comparison: what a fixed array is, how a dynamic array builds on it, and which operations each makes cheap or expensive.3 min read
03Chapter 3: Linked lists and their nodesThis chapter assumes you can write basic Python with loops and functions, that you are comfortable with references (names that point to objects), and that you know O(1) and O(n) notation. The previous chapters covered how arrays store elements side by side in memory. Here we look at the alternative:3 min read
04Chapter 4: Reaching the i-th elementThis chapter assumes you can write loops and functions, understand references (a variable that points to an object), and know that O(1) means constant time and O(n) means time that grows with input size. It covers one operation: getting the element at position i.3 min read
05Chapter 5: Inserting and deleting: where the cost really isThis chapter assumes you know basic Big-O notation, can read Python, and understand that a variable can hold a reference to an object. It covers one question: what does it cost to insert or delete an element in an array and in a linked list?3 min read
06Chapter 6: How dynamic arrays grow and why appends are amortized O(1)This chapter assumes you know basic Big-O notation, understand references, and have seen how an array stores its elements in one contiguous block of memory. It explains what happens when that block fills up, and why appending is still cheap on average.3 min read
07Chapter 7: Cache locality: why arrays often win in practiceThis chapter assumes you know Big-O basics, understand that a linked list node holds a reference to the next node, and have read the earlier chapters on memory layout and traversal cost. Big-O counts operations. It does not say how long each operation takes, and that depends heavily on the CPU cache3 min read
08Chapter 8: Memory overhead per elementThis chapter assumes you know basic Python, understand references or pointers, and can read O(1) and O(n) notation. It covers how much memory each structure spends on things other than your data, and when that cost matters.4 min read
09Chapter 9: Doubly linked lists and tail pointersThis chapter assumes you can read basic Python, know what a reference is, and understand O(1) and O(n). It builds on the singly linked list from the earlier chapters. Here you will see why a singly linked list is awkward at its far end and in the middle, and how two additions fix that: a prev link3 min read
10Chapter 10: Reference stability and invalidationThis chapter assumes you know the layout of arrays and linked lists from earlier chapters. It also assumes you are comfortable with references or pointers, and that you know what O(1) and O(n) mean.4 min read
11Chapter 11: Where each structure fits: stacks, queues, LRU caches and moreThis chapter assumes you know basic Big-O notation, can follow references or pointers, and have read the earlier chapters on access cost, insertion cost, and dynamic array growth. Here we apply those costs to real workloads.3 min read
12Chapter 12: A practical framework for choosingThis chapter assumes you know basic Big-O notation, understand references or pointers, and have read the earlier chapters on memory layout, access costs, insertion and deletion, dynamic array growth, cache locality, memory overhead, doubly linked lists, and reference stability. Here you combine thos4 min read