← 返回 amazon 的题目列表Lexicographically Smallest Palindrome
类型:online_judge
Given a set of characters (which can form a palindrome), rearrange them to get the lexicographically smallest palindrome. The character set only includes lowercase letters, and the string length range is from 1 to 1000. If a palindrome cannot be formed, return an empty string.
Example
Input
aaabb