Problem 2231 · Easy

Largest Number After Digit Swaps by Parity

Maximize a number by swapping only digits with the same parity.

Open the interactive visualisation