Digit Remapping Range Difference
You are given a string representing an integer, num. You know that Bob will sneakily remap one of the 10 possible digits (0 to 9) to another digit.
Print the difference between the maximum and minimum values Bob can make by remapping exactly one digit in num.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)