finds.dev← search

// the find

barretlee/algorithms

★ 337 · JavaScript · MIT · updated Jul 2017

All algorithms writing with javascript in the book 'Algorithms Fourth Edition'.

A JavaScript port of the algorithms from Sedgewick's 'Algorithms Fourth Edition', organized chapter by chapter. It's a study aid for developers working through the book who want to see the implementations in JS rather than Java. Not a library — no exports, no npm package, just runnable scripts.

The directory structure mirrors the book's chapter organization exactly, so finding a specific algorithm is trivial if you have the book open. The code-generation scaffolding (`generator/create.js`) is a nice touch — it removes the boilerplate friction when working through exercises. Covering union-find, sorting, searching, and graph algorithms means the core chapters are at least started.

Abandoned since 2017 — chapters 3–5 are mostly empty `.gitkeep` placeholders, so large chunks of the book (balanced search trees, hash tables, all graph algorithms, strings) simply don't exist yet. No tests anywhere; you can run the scripts manually but there's no way to verify correctness across implementations. The Java-to-JS translation skips all the interesting idiomatic differences — it's a mechanical port, not a thoughtful one. With 337 stars and no activity in 8 years, there's no community or maintenance to expect.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →