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.
Build the largest value by remapping the first non-9 digit to 9, and the smallest by remapping the first digit to 0.