86 Lessons That Turn Algorithms into Animated Manuals
A free website teaches data structures and algorithms through 86 animated lessons, with every step visible. The author has also built simulators for system design, network protocols, electronics, and robotics.
Dilum Sanjaya posted a free learning website called Algo Lab on X, using 86 animated lessons to teach data structures and algorithms. When Charly Wargnier reposted it, he said he really liked the project.
The course covers Big-O, arrays and strings, linked lists, stacks and queues, hashing, trees, heaps, graphs, sorting and searching, greedy algorithms, backtracking, dynamic programming, bit manipulation, and the final lesson discusses P vs NP. Each lesson breaks a problem into steps and shows what is moving, what is being compared, and what is being added at each step. The author @DilumSanjaya's original point was roughly: you don't memorize algorithms; you need to see them move.
The website has a progress bar, search, and 21 languages. Opening the first lesson on Big-O, the page shows 2, 4, and 8 elements, demonstrating the growth of O(1), O(log n), O(n), and O(n²) respectively. The lesson reminds you: with one million data items, binary search takes about 20 steps; with one billion, about 30 steps. Numbers like these are more vivid than the sentence “complexity matters.”
Algo Lab's entry point is at byte-sized-algorithms.vercel.app. The author has also made several similar projects: a system design course, Designed to Scale, with 40 lessons covering how a request travels through caching, sharding, and consensus; a network protocol quick reference, Protocol Explorer, with 39 protocols and a packet inspector; an Electronics 101 app with 20 new lessons where you can play with logic gates, op-amps, and the 555 timer; and a robotics simulator, RoverKit, that supports Arduino and ESP32. Someone asked what model Algo Lab uses, and the author replied that it is opus 5.5.
The value of this kind of tool lies in spreading the result out into a process. Watching animations can lower the barrier to understanding and build intuition. To handle interviews or actually write code, you still need to implement things yourself, run tests, and adjust edge cases. Algo Lab is currently more like a polished animated textbook—suitable for watching once, then going back to the editor and writing it once yourself. For AI practitioners, when tuning systems and writing prompts, basic complexity and data structures are still useful. For non-technical readers, using it to fill in the common-sense knowledge of “what the program is doing” is also easier than memorizing definitions.
发布时间: 2026-11-28 07:27