Write a function that tells if @s@ is a palindrome or not. Remember that a word is a palindrome if it reads the same from left to right than from right to left. In this exercise, @s@ can be rather large; this is why it is passed by reference.
In order to compare the efficiency of your solution against the efficiency of the solution of the Judge, start checking @s@ from its ends.
| C++ | |
| C | |
| Java | |
| Python | |
|
You only need to submit the required procedure; your main program will be ignored.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:03:15.927Z
© Jutge.org, 2006–2026.
https://jutge.org