Search⌘ K
AI Features

Longest Palindrome

Explore how to determine the length of the longest palindrome that can be formed from a given case-sensitive string. Learn to apply hash maps efficiently to solve this problem in linear time and understand key constraints and problem requirements.

Statement

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

Note: ...