nowfound

AI · March 13, 2026

Algorithms and Data Structures in TypeScript – Free Book (~400 Pages)

I started writing this book 10 years ago in JavaScript, got through a few chapters (asymptotic notation, basic techniques, start of sorting), and then abandoned it. Recently I picked it back up, converted everything to TypeScript, and used AI (Zenflow [1] + Claude Opus 4.6) to complete the remaining chapters. I provided the structure, direction, and initial chapters; the AI generated the bulk of the remaining content under a spec-driven workflow. The book covers roughly a first 1-2 year CS curriculum: sorting, dynamic programming, graph algorithms, trees, heaps, hash tables, and more. All…

Algorithms and Data Structures in TypeScript – Free Book (~400 Pages) launched on March 13, 2026 with 65 votes, #680 of 23,380 launches that month and more than 95% of that year's launches.

In plain words

This free, open-source book covers core computer science topics including sorting, dynamic programming, graph algorithms, trees, heaps, and hash tables in TypeScript. Written over a decade and completed with AI assistance, it provides approximately 400 pages of executable, typed code with comprehensive tests. The book targets students and developers learning fundamental algorithms and data structures, offering practical implementations suitable for a first one-to-two year CS curriculum. All code examples are runnable and tested, with the material available under an MIT license.

written from the facts on this page · September 2026

From the sources

A free, comprehensive book on algorithms and data structures — with idiomatic TypeScript 5 implementations, complexity analysis, exercises, and a full Vitest test suite. Covers sorting, graphs, dynamic programming, and more.

Algorithms with TypeScript is a free, comprehensive textbook covering algorithms and data structures from first principles to advanced topics. Spanning 22 chapters across six parts, it features idiomatic TypeScript 5 implementations, step-by-step complexity analysis, exercises, and a full test suite using Vitest — bridging the gap between academic Computer Science theory and practical software engineering. Beta: This book is currently in beta and is still under active review. It may contain errors or incomplete sections. Report errors or issues — contributions are welcome via the GitHub repository . This book grew out of a simple observation: most software engineers use algorithms and data…from amoilanen.github.io

In the maker’s words, at launch

I started writing this book 10 years ago in JavaScript, got through a few chapters (asymptotic notation, basic techniques, start of sorting), and then abandoned it. Recently I picked it back up, converted everything to TypeScript, and used AI (Zenflow [1] + Claude Opus 4.6) to complete the remaining chapters. I…

Does a similar job

all alternatives →
  • AC
    A coloring book of data structures and algorithms2017 · ▲523

    I'm making a coloring book of data structures and algorithms for programmers and students. So far I have a prototype page for a sorting algorithm (albeit a rather simple one). Here the Selection Sort coloring pages you can print. https://coderscoloringbook.com/selectionsort And here is how I colored mine. https://coderscoloringbook.com/selectionsortcolored A coloring book is not quite enough to teach algorithms on its own, but I really get a lot from visual reinforcement of what I learn from books/lectures. Do you think having coloring pages like this could…

  • Data Structures and Algorithms in JavaScript2019 · github.com · ▲369

    🥞Data Structures and Algorithms explained and implemented in JavaScript + eBook - amejiarosario/dsa.js-data-structures-algorithms-javascript

  • IW
    I Wrote a Book on Java2024 · ▲586

    https://www.manning.com/books/data-oriented-programming-in-j... This book is a distillation of everything I’ve learned about what effective development looks like in Java (so far!). It's about how to organize programs around data "as plain data" and the surprisingly benefits that emerge when we do. Programs that are built around the data they manage tend to be simpler, smaller, and significantly easier understand. Java has changed radically over the last several years. It has picked up all kinds of new language features which support data oriented programming (records,…

  • Algorithm Cookbook in Rust2017 · github.com · ▲320

    Common data structures and algorithms in Rust. Contribute to EbTech/rust-algorithms development by creating an account on GitHub.

  • The Art of Computer Programming2015 · amazon.com · ▲91

    "The Bible" of all fundamental algorithms for programming

  • I Wrote a 680-Page Interactive Book on Data Structures and Algorithms2025 · cartesian.app · ▲29

    Hello HN! I’m Elias. I’ve been an educator in Engineering and Computer Science for some years, and I'm always looking for ways to make learning more engaging and hands-on. A few months ago, I started experimenting with the idea of a book that changes and evolves as you interact with it. It started with a chapter on sorting but that snowballed into a 22-chapter interactive book. My objective in writing this book, was to introduce a more interactive format for technical books that doesn't require internet access, that is lightweight, comprehensive, cross-platform, and can provide a better…

More ai this month

the category →
  • Video model that turns script into viral social media videos

    AI · 17d ago · spira.ai

  • The browser where Claude Code and Codex work beside you

    AI · 16d ago · rill.love

  • Kolibri is Aleph Alpha

    AI · 18d ago · tej.as

  • Paintings by AI models: programs run through a simulation of oil paint.

    AI · 20d ago · stillwet.art

  • Onepin▲384

    AI voiceover with every name, price and date said right

    AI · 30d ago · onepin.ai

  • A real-time world model you can explore and change

    AI · 28d ago · world.pixverse.video

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, March 2026

the whole month →
  • AI-native CRM that builds itself and does work for you

    AI · Mar 2026 · lightfield.app

  • Tobira.ai▲728

    A network where AI agents find deals for their humans

    AI · Mar 2026 · tobira.ai

  • Switch from ChatGPT to Claude with import memory feature

    AI · Mar 2026 · claude.com

  • Littlebird remembers everything across your meetings, messages, docs, and apps, then takes action so you can recall any detail and never lose context.

    AI · Mar 2026 · littlebird.ai

  • Your AI Coworker that proactively executes tasks

    AI · Mar 2026 · viktor.com

  • Jupid▲659

    File your taxes with Claude Code

    Commerce · Mar 2026 · jupid.com