Longest palindromic substring: Difference between revisions

Content deleted Content added
Gahfy (talk | contribs)
Add reset of radius to 0 each time we enter in the loop again
Tag: Reverted
Gahfy (talk | contribs)
Undid revision 1017504852 by Gahfy (talk)
Line 52:
'''while''' Center < length(S') '''{'''
Radius = 0
// At the start of the loop, Radius is already set to a lower-bound for the longest radius.
// In the first iteration, Radius is 0, but it can be higher.