Check out the nice C code..
http://justprogrammng.blogspot.com/2012/05/find-longest-palindrome-in-string-onn-c.html
1
Anonymous
Feb 20, 2013
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package towerofhanoi;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
/**
*
* @author sanal
*/
public class PalindromeEx {
public boolean isPalindrome(String str){
char[] chars = str.toCharArray();
int left = 0;
int right = chars.length-1;
int mid = chars.length/2;
for(left=0;left