Longest Palindrome

Easy
StringHash TableGreedyPalindromeGoogleAmazon
Given a case-sensitive string, print the length of the longest palindrome that can be built using its characters. Input format: - One line: s

Constraints

1 <= s.length <= 2 * 10^5

Sample tests

Sample 1

Sample 2

Sign in to submit