0409 Longest Palindrome
Warning
Over a year old. May be outdated
Solved at: 230128
Question
Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters.
Letters are case sensitive, for example, "Aa" is not considered a palindrome here.
Solution
Results
- 3m 42s
- Runtime 9 ms, Beats 52.8%
- Memory 14.5 MB Beats 33.21%
Complexity Analysis
Time:
Space: since technically there's a cap for combinations
Backlinks1
Coding Tests