Which of the following is the longest common subsequence between the strings “hbcfgmnapq” and “cbhgrsfnmq” ?
(a) hgmq
(b) cfnq
(c) bfmq
(d) fgmna
I have been asked this question during an online exam.
This interesting question is from Longest Common Subsequence in section Dynamic Programming of Data Structures & Algorithms II