trekhleb/javascript-algorithms ? reverse-engineered prompt

Reverse engineered prompt

Build me a JavaScript learning repo that shows common algorithms and data structures in a really clear way.

I want each topic to live in its own folder with a short explanation, simple code examples, and links to extra reading so someone studying for interviews can understand not just how it works, but why it works. Include the usual basics like linked lists, stacks, queues, hash tables, trees, graphs, heaps, and a handful of classic algorithms like search, sorting, math, string matching, and dynamic programming.

Make it easy to run the examples and tests locally, and keep the code clean and well organized. If it helps, add small diagrams or notes in the docs to make the ideas easier to follow. Please also include a good README that acts like a table of contents for the whole collection, and support a simple contribution workflow so I can keep adding more examples over time. If you need to check current docs or best practices online, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab