#include <iostream> #include <string> #include <vector> using namespace std; int getLongestPalindrome (string s) { int length =0; int n =s.size(); //space: vector<vector<bool>> dp(n,vector<bool>(n,false)); for( int end =0;end <n;end+...