GATE CS 2014, set 2 · Question 47 · Algorithms · Numerical answer (NAT) · 2 marks · no negative marks
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 = ______.
Answer
Answer 34
Answer from the official GATE CS 2014 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes