finds.dev

bradtraversy/traversy-js-challenges

Challenges & docs from JS Algorithms & Data Structures course

View on GitHub

★ 1,085JavaScriptupdated Nov 2025

// the take

This is the challenge/solution sandbox for Brad Traversy's paid JS Algorithms & Data Structures course. Each topic folder has a blank starter file, a heavily-commented solution, a Jest test, and a runner script. It's for people working through the course or self-teaching DS&A fundamentals in JS.

The progression is genuinely well thought out — loops and string manipulation, then higher-order array methods, then recursion, then Big O, then the actual data structures (hash tables, linked lists, trees, graphs) and sorting algorithms, each building on the last. Every challenge ships a working Jest test plus a separate 'run' file so you can console.log and poke at your implementation without fighting the test harness. Solutions are commented for the reasoning, not just the syntax, which is rare for repos that dump a solution folder and call it a day.

The repo explicitly bans PRs since it's pinned to a specific paid course, so this isn't a living open-source project you can contribute fixes to — it's a static artifact. Test files require a manual rename from `-test.js` to `.test.js` before Jest will pick them up, which is a needless manual step that should just be the default filename. There's no linter, no CI, and no package.json scripts beyond running the tests, so as a codebase to learn 'good practices' from, it's really only useful for the DS&A content, not for tooling conventions. It's also inseparable from the course — without the paid videos, the readmes and heavily-commented solutions are doing double duty as documentation, and some sections read like abbreviated lecture notes rather than standalone material.

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

// at a glance

Stars
1,085
Forks
419
Language
JavaScript
Last commit
3 Nov 2025

// nearby

If traversy-js-challenges isn't quite it.

All repos →