Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration. Stan Kelly-Bootle

Longest palindromic substring

Language Java | Level Intermediate | Category Data structure | September 9, 2015 10:14 am


Data structure Description

A palindrome is a word or number which reads same using backward and forward.

Write a program to find a maximum-length contiguous substring of a given string that is also a palindrome.


Output

   					 

Palindrome word to find the longest palindrome: aibohphobia eye radar otto
Longest palindrome from given string: aibohphobia

				    

Comments


No comments available!

Please login to add comments.