Given a string you have to find out the length of the longest palindromic subsequence from the given string
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Let there is a string str.
Now possible arrangements are:
Let, f(a,b) = length of palindromic substring from index a to index b.
Considering the above three facts:
For, str = bghaufahgt
C++ Implementation:
Output