Which of the following is the longest common subsequence between the strings "hbcfgmnapq" and "cbhgrsfnmq" ?
hgmq
cfnq
bfmq
fgmna
View Answer
Correct Answer: D — fgmna
Explanation:
The length of the longest common subsequence is 4. But 'fgmna' is not the longest common subsequence as its length is 5.
