A palindrome is a word like “deed” or “level”, which remains the same when you spell it backward.
We assume that the input string terminates with a period '.' and the length of input string is less than 100.
Implementing the function int maxlength_palindrom(char input[], int length) that finds the length of the longest palindromic substring of the input string.
All you need to submit are:
int maxlength_palindrom(char input[], int length)
{
/* TODO: Your Code here */
}
Reference code for this question is at the very bottom of this page under Partial Judge Code heading.
String of characters that terminates with a period '.'
The length of the longest palindromic substring of the input string.