65 points · by jsontwikkeling · 8mo ago · 22 comments
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
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.
I just mentioned the tools I use normally and it is my personal project done on my personal time of which my employer is not aware.
I might not mention the tools I used but they did the bulk of the work so I thought appropriate to mention.
Promoting Zenflow or Claude Code was not my goal. They are mentioned purely for the attribution purposes
What was the point of first asking an LLM to expand prompt/"specs" into a book and then asking it to compress it back to a summary? Well, I'm glad you asked! To promote this Z*n tool, of course.
I wanted to mention the tools I used including Claude Code. I hope it does not seem that I am here to promote Anthropic tools as well?
I just thought it appropriate to mention for the correct attribution, because the heavy lifting was done by the tools, not by me
Feedback is clear, I should never had posted and will probably not post in the future.
Hopefully the book will be useful for those who find it, I will get feedback elsewhere and will finish reviewing it myself
The book is still a work in progress, and I have tried to be transparent about that. If you have specific concerns about the quality or suggestions for improvement, I would genuinely appreciate hearing them.
dang: Can we get stuff like this out?
And I am human, who first finished a similar course roughly 20 years ago, worked as a TA and taught students programming and algorithms
I talked about the first 5 comments on the thread, all by new accounts.
It seems like an AI campaign. not organic up votes.