educative.io

Please confirm the answer

longest_palindromic_subsequence(“abdbca”) = 5

Should it be 3 “bdb”?


Course: Educative: Interactive Courses for Software Developers
Lesson: Educative: Interactive Courses for Software Developers

Hi @STurl
Thanks for reaching out to us. Yes, the length of the Longest Palindrome Subsequence of bdb is 3.
Happy Learning :slight_smile: