Longest Palindrome Subsequence
Look at another commonly asked coding question based on strings and dynamic programming.
We'll cover the following...
Problem statement
Given a sequence of characters, find the length of the longest palindromic subsequence in it.
For example, if the given sequence is BBABCBCAB, the output should be 7 as BABCBAB is the longest palindromic subsequence in it. A sequence is a palindromic sequence if that sequence reads the same backward as forwards, e.g. ...