1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. For which of the following, the length o...
Q.

For which of the following, the length of the string is not equal to the length of the longest palindromic subsequence?

A. a string that is a palindrome
B. a string of length one
C. a string that has all the same letters(e.g. aaaaaa)
D. some strings of length two
Answer» D. some strings of length two
Explanation: a string of length 2 for eg: ab is not a palindrome.

Discussion