You are given an integer num. You can swap two digits at most once to get the maximum valued number.
Return the maximum valued number you can get.
1 | class Solution { |
You are given an integer num. You can swap two digits at most once to get the maximum valued number.
Return the maximum valued number you can get.
1 | class Solution { |