1.

For every non-empty string, the length of the longest palindromic subsequence is at least one.(a) True(b) FalseI got this question in an international level competition.My doubt is from Longest Palindromic Subsequence topic in chapter Dynamic Programming of Data Structures & Algorithms II

Answer»

Correct ANSWER is (a) True

The explanation is: A single CHARACTER of any string can ALWAYS be considered as a palindrome and its length is ONE.



Discussion

No Comment Found

Related InterviewSolutions