Driver Code
arr = [ [ [ 0 for k in range ( 100 ) ] for j in range ( 100 ) ] for i in range ( 100 ) ] NEW_LINE for i in range ( 100 ) : NEW_LINE INDENT for j in range ( 100 ) : NEW_LINE INDENT for k in range ( 100 ) : NEW_LINE INDENT arr [ i ] [ j ] [ k ] = - 1 NEW_LINE DEDENT DEDENT DEDENT X = " geeks " NEW_LINE Y = " geeksfor " NEW_LINE Z = " geeksforgeeks " NEW_LINE m = len ( X ) NEW_LINE n = len ( Y ) NEW_LINE o = len ( Z ) NEW_LINE print ( " Length ▁ of ▁ LCS ▁ is ▁ " , lcs ( X , Y , Z , m , n , o ) ) NEW_LINE