OpenGenus/cosmos ? reverse-engineered prompt

Reverse engineered prompt

Build me an offline library of algorithms and data structures that I can browse and learn from on my own machine.

I want it organized by topic like sorting, searching, graph algorithms, dynamic programming, string algorithms, greedy, backtracking, and common data structures. For each topic, include clear example implementations, ideally in a few languages if that fits, but C++ can be the main one. Make it easy to add new problems and keep everything consistent, with simple folder organization, basic contribution notes, and a few style guidelines for code.

I’d also like a lightweight way to build and test the examples from the command line, plus any scripts needed to generate dependencies or run checks. Keep it practical and search friendly, so someone can quickly find a solution for a problem or compare approaches. If you need to look up current best practices or docs online while setting it up, feel free to do that.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab