metoop / Dynamic-programming

MIT License
2 stars 7 forks source link

Longest Palindromic Subsequence in C++ #6

Closed pradeexsu closed 4 years ago

pradeexsu commented 4 years ago
You may assume that the maximum length of s is 1000.

Example 1:

Input:

"bbbab"

Output:

4

One possible longest palindromic subsequence is "bbbb".

Example 2:

Input:

"cbbd"

Output:

2

One possible longest palindromic subsequence is "bb".

Constraints:

1 <= s.length <= 1000
s consists only of lowercase English letters.

**Note read README file carefully

yaduvanshi777 commented 4 years ago

I want work on this issue please assign to me