how will we solve this problem…
i know how to find the length of longest palindromic subsequence using top down…how to print it??explain with code
Print longest palindromic subsequence
Watch this video. How to print the resulting string has also been explained here.
i want to know the top down approach as well…
You would have to maintain a lookup table…
You can refer this https://www.techiedelight.com/longest-palindromic-subsequence-using-dynamic-programming/
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.