+ 1

How can written a program which print palindrome words?

2nd Mar 2017, 2:26 PM
Aytac
Aytac - avatar
1 Antwort
+ 3
Try for a recursive algorithm: 1. if the string has length <=1, it's a palindrome. 2. else, the string is a palindrome if its initial and ending characters are equal, and the inner characters form a palindrome string.
2nd Mar 2017, 3:55 PM
Álvaro