Longest palindromic substring: Difference between revisions

Content deleted Content added
m longest palindrome in S' should not be calculated
m longest_palindrome_in_S' is already calculated so need to further increase it
Line 30:
'''}'''
//longest_palindrome_in_S' = 2*max(PalindromeRadii)+1
longest_palindrome_in_S = (longest_palindrome_in_S'-1)/2
'''return''' longest_palindrome_in_S