README ¶ < Previous Next > 516. Longest Palindromic Subsequence (Medium) 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 is "bbbb". Example 2: Input: "cbbd" Output: 2 One possible longest palindromic subsequence is "bb". Related Topics [Dynamic Programming] Similar Questions Longest Palindromic Substring (Medium) Palindromic Substrings (Medium) Count Different Palindromic Subsequences (Hard) Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files longest_palindromic_subsequence.go Click to show internal directories. Click to hide internal directories.