Find largest Substring which is palindrome

Find largest Substring which is palindrome

There are case which might require you to find out substring which is largest palindrome.

Here in this example, we’ll achieve it by finding all the palindrome substring and then find out the largest one from it.

Output

 

Leave a Reply

Your email address will not be published. Required fields are marked *