Given a string of letters, return the length of the longest palindrome that can be built from those letters (rearranging allowed).
Example 1:
Input: abccccdd Output: 7
Example 2:
Input: a Output: 1
Input format: A single string.
Given a string of letters, return the length of the longest palindrome that can be built from those letters (rearranging allowed).
Example 1:
Input: abccccdd Output: 7
Example 2:
Input: a Output: 1
Input format: A single string.