Programming, Data Structures & Algorithms — you can play with.
Every chapter follows the official 12-week syllabus: short explanations, code you can run, visualisers you can step through, questions with instant feedback, and LeetCode problems matched to each topic. Don't just read an algorithm — watch it work, then predict what it does next.
Chapters
Python Refresher
Operation counting, gcd, primes, exceptions, classes.
Complexity, Notations, Sorting & Searching
Big-O, binary search, five sorting algorithms.
Arrays, Lists, Stacks, Queues, Hashing
Lists, linked lists, stacks, queues, hash tables.
Graph Algorithms
Graph representations, BFS and DFS with live visualisers.
Graph Algorithms (Continued)
DAGs, topological sort, Dijkstra, Bellman–Ford, Floyd–Warshall.
Union-Find, Priority Queue, Heap, BST
Union–Find, priority queues, heaps and binary search trees.
Balanced Trees & Greedy Algorithms
AVL trees, interval scheduling, Kruskal, Prim, Huffman.
Divide and Conquer
Recurrences, master theorem, inversions, quickselect, Karatsuba.
Dynamic Programming
Memoisation, grid paths, LCS, edit distance, matrix chain, knapsack.
String / Pattern Matching
Brute force, Boyer–Moore, KMP and tries.
Network Flows, LP & Complexity Classes
Max flow / min cut, linear programming, P vs NP.
Summary & Final Review
Cheat sheet, decision guide and a mixed final test.
Recursion & Backtracking (bonus)
Call stack, subsets, permutations, N-Queens, pruning (bonus chapter).
Practice: Which Technique?
Technique-identification practice and an estimation drill.
Practice tools
Step, play, pause and change the input. Break things on purpose — sorted input, duplicate keys, empty lists.
Multiple choice, type-the-answer, put-the-steps-in-order and predict the output. Output answers are produced by actually running the code.
Light, Dark, or a warm serif Reading mode for long sessions. Progress is saved in your browser.
Editable code cells run in your browser (Pyodide, loads on first use). Press Ctrl/⌘+Enter to run.