Open Vitorvgc opened 7 years ago
Added C++ implementation: #1320
An efficient algorithm to solve this problem uses dynamic programming. You can check an explanation on this problem here.
Wow, Thanks for the heads up and nice reference.
Let me know if there may be any improvements on the pull request.
Add the code for the
longest palindromic sequence
problem in any language.Problem statement: Given a string
S
, find the length of the longest subsequence ofS
that is a palindrome.The code should be placed at code/dynamic_programming/longest_palindromic_sequence.
For contribution guidelines, see this.