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
Post a Comment