Longest Palindrome
Problem
Input: s = "abccccdd" Output: 7 Explanation: One longest palindrome that can be built is "dccaccd", whose length is 7.Input: s = "a" Output: 1 Explanation: The longest palindrome that can be built is "a", whose length is 1.
Pseudocode
Solution
Time and Space Complexity
Time
Space
Last updated