algorithms icon indicating copy to clipboard operation
algorithms copied to clipboard

Add Longest Palindrome Subsequence

Open aamodpant15 opened this issue 4 years ago • 0 comments

Add LPS.

For example, s1 = 'ACBDACDBA',
    LPS(s1) ='ABDCDBA'.

To see this clearly, we can align and capitalize the letters 
that are chosen to be a part of the LPS (ignore the spaces):

s1 =      'A c B D a C D B A',
           |   | |   | | | |
LPS(s1) = 'A   B D   C D B A'.

aamodpant15 avatar Dec 07 '20 08:12 aamodpant15