Problem 3734 · Hard

Lexicographically Smallest Palindromic Permutation Greater Than Target

A palindrome is set by its first half, so search the arrangements of the half letters that stay above the target.

Open the interactive visualisation