Problem 4021 · Medium

Minimum Operations to Make a Rotated Palindrome I

Try every rotation, pay for each mismatched mirror pair with the cheapest forward increments, and keep the best total.

Open the interactive visualisation