Ezvor

3088. Make String Anti-palindrome

HardString Preparing judge… LeetCode
StringGreedySortingCounting Sort

Hints

Hint 1
Sort the string.
Hint 2
Check if there are equivalent characters in the middle, if there are, shift the ones from the right side more to the right until they don't overlap.