Problem 2697 · Easy

Lexicographically Smallest Palindrome

Compare each mirrored pair of letters and change both to the smaller one; that is the fewest changes and the smallest palindrome.

Open the interactive visualisation