Question discussion

What is the length of the longest common subsequence of the strings "ALGORITHM" and "ALTRUISTIC"?

984Medium DSSSB TGT Computer Science 0 replies

What is the length of the longest common subsequence of the strings "ALGORITHM" and "ALTRUISTIC"?

  • A4
  • B6
  • C5
  • D7
Correct answer: C

Explanation

One longest common subsequence is "ALRIT", which has length 5.

Discussion 0

Nobody has replied yet. Start the discussion!