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 = .
GATE CS 2014 · Set-2 · Asymptotic Analysis & Recurrences
Solve it on GATE DA practice →More Searching & Sorting Algorithms problems