Q. |
Which of the following is the longest common subsequence between the strings “hbcfgmnapq” and “cbhgrsfnmq” ? |
A. | hgmq |
B. | cfnq |
C. | bfmq |
D. | fgmna |
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. |
Login to Continue
It will take less than 2 minutes