Assigning the found palindromic length to odd / even length array
R [ j ] [ i ] = rp NEW_LINE k = 1 NEW_LINE while ( R [ j ] [ i - k ] != rp - k ) and ( k < rp ) : NEW_LINE INDENT R [ j ] [ i + k ] = min ( R [ j ] [ i - k ] , rp - k ) NEW_LINE k += 1 NEW_LINE DEDENT rp = max ( rp - k , 0 ) NEW_LINE i += k NEW_LINE