finds.dev

barretlee/algorithms

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

View on GitHub

★ 337JavaScriptMITupdated Jul 2017

// the take

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.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
337
Forks
41
Language
JavaScript
License
MIT
Last commit
6 Jul 2017

// nearby

If algorithms isn't quite it.

All repos →