Driver code
S = " babab " NEW_LINE T = " babba " NEW_LINE m = len ( S ) NEW_LINE n = len ( T ) NEW_LINE ans = shortestSeq ( S , T , m , n ) NEW_LINE if ( ans >= MAX ) : NEW_LINE INDENT ans = - 1 NEW_LINE DEDENT print ( " Length ▁ of ▁ shortest ▁ subsequence ▁ is : " , ans ) NEW_LINE