I've been trying to generate the longest possible palindrome included in a given string, in java. But, it always ended up in errors.
Let me provide the sample input and output so that it may help .
Input: This is a sample string for testing
Output: ttissaepeassitt
It would be great if anyone could solve me this!!
Thank You!!
You could use a recursive algorithm: