1.

Which of the following problems can be solved using the longest subsequence problem?(a) Longest increasing subsequence(b) Longest palindromic subsequence(c) Longest bitonic subsequence(d) Longest decreasing subsequenceI got this question in examination.I would like to ask this question from Longest Common Subsequence topic in chapter Dynamic Programming of Data Structures & Algorithms II

Answer» CORRECT option is (b) Longest palindromic SUBSEQUENCE

The best explanation: To find the longest palindromic subsequence in a given string, reverse the given string and then find the longest COMMON subsequence in the given string and the REVERSED string.


Discussion

No Comment Found

Related InterviewSolutions