News for hackers. Stuff that matters.

knightnii

Re:How do I find the longest palindrome in a string? on Wednesday January 01, 2014 @04:20AM (#6994636)
suffix tree. same as longest subsequence problem. create suffix tree, reverse string and find longest subsequence.