Problem 4028 · Medium

Minimum Operations to Make a Rotated Palindrome II

Try each rotation, then price every mirrored letter pair by the shorter walk around the alphabet and keep the cheapest total.

Open the interactive visualisation