[Solved] Maximum Difference by Remapping a Digit with Java
![[Solved] Maximum Difference by Remapping a Digit with Java [Solved] Maximum Difference by Remapping a Digit with Java](https://realcoder.techss24.com/wp-content/uploads/2023/02/Solved-Maximum-Difference-by-Remapping-a-Digit-with-Java-768x432.png)
You are given an integer num. You know that Danny Mittal will sneakily remap one of the 10 possible digits (0 to 9) to another digit. Return the difference between the maximum and minimum values Danny can make by remapping exactly one digit in num. Notes: Example 1: Input: num = 11891 Output: 99009…