logoalt Hacker News

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

61 pointsby jsontwikkelingtoday at 12:15 PM11 commentsview on HN

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 code is executable, typed with generics/interfaces, and covered with tests.

I've thoroughly reviewed several chapters (sorting, DP, graphs) and done a high-level pass on the rest. Currently in beta — corrections and contributions are welcome.

MIT licensed. Inspired by Wirth's "Algorithms and Data Structures", SICP, and CLRS.

Code and tests: https://github.com/amoilanen/Algorithms-with-Typescript

[1] https://zencoder.ai/zenflow


Comments

Permittoday at 2:59 PM

> and done a high-level pass on the rest.

Why would I read your book if you have not read your book?

Edit: I now understand what is going on here. This is an attempt to promote Zenflow. The GitHub account (https://github.com/amoilanen/) is Anton Moilanen who is an employee at Zencoder, the creators of Zenflow.

The account (https://news.ycombinator.com/user?id=jsontwikkeling) was created 86 days ago the same day as this Show HN post was created: https://news.ycombinator.com/item?id=46290617

It would probably be worth the moderator's time to see if this post was part of a coordinated upvote ring as well.

show 3 replies
tossandthrowtoday at 2:29 PM

This seems to be an entirely AI promoted post.

dang: Can we get stuff like this out?

show 1 reply
gausswhotoday at 1:50 PM

this is well structured and put together. i would think it serves as a good base for refreshing oneself on the fundamentals. and it has a satisfying bend towards being both concise and thorough.

Copyrightesttoday at 1:44 PM

[dead]

BloodAndCodetoday at 1:24 PM

[flagged]

show 1 reply
useftmlytoday at 2:27 PM

[flagged]

show 1 reply
orkunktoday at 2:13 PM

[flagged]