Math
1432. Max Difference You Can Get From Changing an Integer
Twice you may pick a digit x and replace all its occurrences with a digit y (first replacement gives a, second gives b, both from the original num, no leading zeros, result stays positive). Maximise…
Loading…