+ 2
That said, you can skip the creation of an array with reversed strings, and use a similar logic to compare each character with the one in the mirrored position.
22nd Nov 2022, 2:19 PM
Emerson Prado
Emerson Prado - avatar
+ 2
Isuru what's your doubt?
22nd Nov 2022, 8:35 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 2
Isuru Pls improve your question by: 1. Removing the wall of code in the question description, saving it in Code Playground, then adding a link to it (use "+" button) in the question description again. 2. Stating your requests in the question description too, not in an answer, where it can get lost if there are many others.
22nd Nov 2022, 2:17 PM
Emerson Prado
Emerson Prado - avatar