leetle

Daily challenge for 2025-10-13

286. Longest Palindrome

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.

Example:
Input: s = "abccccdd"
Output: 7
Explanation: One longest palindrome is "dccaccd", length is 7

Run this challenge interactively in Python or JavaScript when the app loads.