Gate CS-2014-2 Question Paper With Solutions

Q. 47 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 = ____.

(A) 33

(B) 23

(C) 43

(D) 34

Answer: (D)

Explanation:

Gate CS-2014-2 Question Paper With Solutions

Learn More:   Gate EE-2015-2 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here