Returns length of length common subsequence for str1 [ 0. . m - 1 ] , str2 [ 0. . n - 1 ]
def lcs ( str1 , str2 , m , n ) : NEW_LINE INDENT L = [ [ 0 for i in range ( n + 1 ) ] for i in range ( m + 1 ) ] NEW_LINE DEDENT