|
Algorithms_in_C++
1.0.0
Set of algorithms implemented in C++.
|
Program to find the Longest Palindormic Subsequence of a string. More...
#include <algorithm>#include <cassert>#include <iostream>#include <vector>Functions | |
| std::string | lps (std::string a) |
| void | test () |
| int | main () |
Program to find the Longest Palindormic Subsequence of a string.
Palindrome string sequence of characters which reads the same backward as forward Subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements.
| std::string lps | ( | std::string | a | ) |
Function that returns the longest palindromic subsequence of a string
| int main | ( | void | ) |
| void test | ( | ) |
Test function