Q. 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 subsequence
πŸ’¬ Discuss
βœ… Correct Answer: (B) longest palindromic subsequence
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.

Explanation by: Mr. Dubey
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

πŸ“Š Question Analytics

πŸ‘οΈ
275
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate