algorithm - Finding presence of palindromic sequence in a string -


how find if string contains contiguous palindromic sequence ? try naive solution in o(n^2) time n string size , efficient algos ?

well looking palindrome isn't particularly interesting since every 1 character string palindrome. if looking longest palindrome may interested in manacher's algorithm.

a description of algorithm can found here.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -