Search⌘ K
AI Features

Longest Palindrome

Explore how to determine the longest palindrome length from a given string by analyzing character frequency with hash maps. Learn to handle case-sensitive letters and implement an efficient O(n) time and space solution in JavaScript.

Statement

Given a string s that only contains alphabets, return the length of the longest palindrome that may be composed using those letters.

Note: ...