 All Problems
Longest Palindrome
easy
strings
hash map
greedy
google
amazon
facebook
microsoft

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.

Run to check your code against the sample cases, or submit to run every case