Math
2566. Maximum Difference by Remapping a Digit
Given a number num, you may pick one digit d (0–9) and replace all its occurrences in num with another digit (0–9). Doing this twice — once for the maximum and once for the minimum, independently —…
Loading…