class Solution { public: int getLongestPalindrome(string A, int n) { // write code here int m = A.size(); int maxlen = 1; if (m < 2) { return 1; } vector<vector<bool>> dp(m, vector<bool> (m)); for(int i=0; i...