Yogesh-developer/Algorithms ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple collection of string algorithms that I can use to learn from and run examples of. I want each common string problem to have a clear implementation and a short plain English explanation, like searching, matching, reversing, checking palindromes, counting characters, and other basic string operations. Keep it easy to read and organized so someone can open it and quickly understand what each algorithm does and how to use it.

If it helps, add a small way to test the examples with sample input and output, and make the code consistent and clean throughout. Focus on clarity over clever tricks, and include comments where the logic might not be obvious. If you need to look up current best practices or language docs online, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab