Longest Palindromic Subsequences
medium
1. You are given a string str. 2. You are required to print the length of longest palindromic subsequence of string str.
Constraints
0 <= str.length <= 10
Format
Input
A string str
Output
A number representing the length of longest palindromic subsequence of string str.
Example
Sample Input
abcgackbc
Sample Output
5
Question Video