In LCS, a subsequence is a sequence that appears in the same _______ in both strings but is not necessarily _______.

  • Index, identical
  • Order, consecutive
  • Pattern, equal
  • Position, contiguous
In LCS (Longest Common Subsequence), a subsequence is a sequence that appears in the same position (index) in both strings but is not necessarily contiguous or consecutive. It implies that the elements are in the same order relative to each other.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *