// the find
trekhleb/javascript-algorithms
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
A massive reference collection of algorithms and data structures implemented in plain JavaScript, with every entry linked to its own README, Big-O tables, and YouTube explanations. It's aimed at developers who want to study or revisit CS fundamentals without switching languages, and at people grinding interview prep.
Every algorithm lives in its own folder with a dedicated README, complexity table, and links to further reading — the organisation makes it easy to navigate to exactly what you want without wading through a monolithic file. Test coverage is thorough and the CI badge is green, so the implementations are at least functionally correct. The Big-O cheat sheet embedded in the main README is genuinely useful as a quick reference. Translated into 16+ languages, which meaningfully extends its reach beyond English-speaking audiences.
The implementations are pedagogical, not production-grade — they're written to be read, not used. Pulling any of this into real code would require rewriting it anyway, since there's no npm package and no stable API contract. The 'Machine Learning' section is a single link to a separate repo (NanoNeuron) and a couple of toy classifiers — it feels padded to check a box. At ~196k stars it's one of the most-starred repos on GitHub, which means most developers have already seen it; it's unlikely to feel like a discovery.