GATE Computer ScienceHardGATE CSE · NIELIT

What is the length of a longest common subsequence of X = "ABCBDABXYZ" and Y = "BDCABAZYX"?

  1. A. 4
  2. B. 6
  3. C. 7
  4. D. 5

Correct answer: D. 5

The final entry of the LCS table is 5.

More Algorithms questions

Exams that ask this topic