C++ So easy ..
We can include all even frequency characters in our palindrome.\nWe can include atmost one odd frequency characters to make a palindrome\n\nclass Solution {\npu
We can include all even frequency characters in our palindrome.\nWe can include atmost one odd frequency characters to make a palindrome\n```\nclass Solution {\npublic:\n    int longestPalindrome(string s) {\n        \n        vector<int>v(255,0);\n        int c=0;\n        for(int i=0;i<s.size();i++)\n        {\n            v[s[i]-65]++;\n            if(v[s[i]-65]%2==0)\n            c+=2;\n        }\n         if(s.size()>c)\n           return c+1;\n         else\n          return c;\n    }\n};\n```
[]