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.
Try each rotation, then price every mirrored letter pair by the shorter walk around the alphabet and keep the cheapest total.