GATE | CS | 2014 | Set 2 | Algorithms | Dynamic Programming | Question 5

Last Updated :
Discuss
Comments

Consider two strings A = "qpqrr" and B = "pqprqrp". Let x be the length of the longest common subsequence (not necessarily contiguous) between A and B and let y be the number of such longest common subsequences between A and B. Then x + 10y = ___.

33

23

43

34

Share your thoughts in the comments