Python 3(Two-liner) - Faster than 99.26%, Memory usage less than 100%
\nfrom collections import Counter\n\nclass Solution:\n    def longestPalindrome(self, s: str) -> int:\n        count = sum([(x//2) * 2 for x in Counter(s).value
```\nfrom collections import Counter\n\nclass Solution:\n    def longestPalindrome(self, s: str) -> int:\n        count = sum([(x//2) * 2 for x in Counter(s).values()])\n        return count if count == len(s) else (count + 1)\n```
['Python', 'Python3']