1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. What is the length of the longest palind...
Q.

What is the length of the longest palindromic subsequence for the string “ababcdabba”?

A. 6
B. 7
C. 8
D. 9
Answer» B. 7
Explanation: the longest palindromic subsequence is “abbabba” and its length is 7.

Discussion