You are given an integer num. You will apply the following operation exactly two times:
Select a digit x (y (y can be equal to x.
Replace every occurrence of x in the decimal representation of num with y.
The resulting integer cannot have leading zeros and cannot be equal to
Let a and b be the integers obtained from the first and second operations, respectively.
Return the maximum possible value of a b.
Constraints:
num
You are given an integer num. You will apply the following operation exactly two times:
Select a digit x (y (y can be equal to x.
Replace every occurrence of x in the decimal representation of num with y.
The resulting integer cannot have leading zeros and cannot be equal to
Let a and b be the integers obtained from the first and second operations, respectively.
Return the maximum possible value of a b.
Constraints:
num