Given a string s, return the length of the longest subsequence of s that is a palindrome.
A subsequence is formed by deleting zero or more characters from s without changing the relative order of the remaining characters.
Constraints:
s.length
s consists only of lowercase English letters.
Given a string s, return the length of the longest subsequence of s that is a palindrome.
A subsequence is formed by deleting zero or more characters from s without changing the relative order of the remaining characters.
Constraints:
s.length
s consists only of lowercase English letters.