TheAlgorithms/JavaScript ? reverse-engineered prompt

Reverse engineered prompt

Build me a JavaScript repository of beginner friendly algorithms and data structures, organized into clear folders by topic like sorting, searching, graphs, trees, dynamic programming, strings, math, and basic data structures. I want each algorithm in its own simple file with clean code, short comments, and examples that make it easy to learn from. Include a README that explains what the project is, how to run the code, and how people can add more algorithms later. Add tests for the implementations and make sure the code style is consistent and easy to read.

I also want a directory page that lists what is already included, plus a contribution guide that makes it simple for new people to help out. Keep it focused on educational use, not performance tricks, and make the structure easy to browse. If you need to check current best practices or docs online, go ahead and do that.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab