标签归档:leetcode

RSS feed of leetcode

[LeetCode]Longest Palindromic Subsequence

题目描述:

LeetCode 516. Longest Palindromic Subsequence

Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000.

Example 1:
Input:

"bbbab"

Output:

4

One possible longest palindromic subsequence ...

继续阅读