TheAlgorithms/C-Plus-Plus ? reverse-engineered prompt
Reverse engineered prompt
Build me a clean C++17 project that collects a bunch of classic algorithms and data structure examples in one place, like a learning library for students and interview prep.
I want the code organized by topic, things like sorting, searching, graphs, dynamic programming, math, strings, greedy, backtracking, and basic machine learning examples. Keep each algorithm small and easy to read, with comments that explain what it does and a simple way to run or test it. Please make sure it does not rely on any external libraries, just standard C++.
It should feel educational, not like production app code. Add a simple build setup, basic self checks or sample inputs, and documentation that makes it easy to browse the algorithms and understand how they work. If it helps, look up current docs online for any C++17 or CMake details you need.
Are you gonna build this?
make sure you review the code using coderabbit