ShodanXII/42-Exam-Rank-05 ? reverse-engineered prompt
Reverse engineered prompt
Build me a clean set of solutions for the 42 exam rank 05 exercises, split into the two levels, using C and C++ where appropriate.
I want each subject implemented in a simple, exam friendly way, with the right class design and algorithms, and with code that is easy to read and compile. For the C++ parts, please follow good object oriented habits like proper constructors, destructors, copying, and operator overloading. For the C parts, keep the parsing and logic solid and handle bad input carefully.
The projects I need are a polymorphic set built on top of bag classes, a bigint class that supports normal arithmetic and comparisons, a 2D vector class, a biggest square solver that reads a map and fills the largest empty square, and a Game of Life simulation.
If anything is unclear from the subjects, look up the current exam style or docs online if you need to, and then implement the solutions in a straightforward way that would pass typical 42 tests.
Are you gonna build this?
make sure you review the code using coderabbit