Problem 3035 · Medium

Maximum Palindromes After Operations

Any swap can move letters between words, so count the letter pairs and the total letters, then take the shortest words that still fit.

Open the interactive visualisation