Thank you very much! I have one question: would the complexity be the same as that of edit distance O(nm)?
@tc07client55 жыл бұрын
Awesome!
@effy12197 жыл бұрын
excellent
@ON-ne1rd7 жыл бұрын
What if you use a mix of both up and left arrows when you're borrowing the value from neighbors which have the same value?
@johnmichaelkovachi33386 жыл бұрын
This channel is fucking awesome!
@AnantChowdhary7 жыл бұрын
Not sure how at 3:37 , case ii) is correct. x(k) may be equal to a(n) even though a(n) is not equal to b(m)
@bynull6 жыл бұрын
Incorrect solution. A = z y x w x w z y B = w x y x z z LCS = y x z A string doesn't contain yxz
@carloancellotti28906 жыл бұрын
You are wrong. It is not necessary that the LCS should have continuous characters. The only requirement is that the characters in LCS should have their respective indices in increasing order in both strings. In the 'A' string, y,x,z occur at 2nd,3rd and 7th position respectively which are in increasing order.
@nebimertaydin31876 жыл бұрын
:D its common subsequence problem not common substring.