Problem 2566 · Easy

Maximum Difference by Remapping a Digit

Build the largest value by remapping the first non-9 digit to 9, and the smallest by remapping the first digit to 0.

Open the interactive visualisation