You don't appear to have catered for the 'aba' situation? Ie. Where the palindrome is symetrical around a single central character.
In reply to Re^2: Finding longest palindrome from a string
by BrowserUk
in thread Finding longest palindrome from a string
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |