Condition for back move to ( i - 1 ) th character
if ( s [ i - 1 ] == t [ i + j - 1 ] ) : NEW_LINE INDENT dp [ i - 1 ] [ j ] = 1 NEW_LINE DEDENT ans = False NEW_LINE for i in range ( n + 1 ) : NEW_LINE