ProgrammingHard

The longest common subsequence of "abc" and "ac" has length?

  1. A. 1
  2. B. 3
  3. C. 2
  4. D. 0

Correct answer: C. 2

The subsequence ac appears in both strings, and no longer common subsequence exists.

More C Programming questions

Exams that ask this topic