You are given an integer num. Rearrange the digits of num such that its numerical value is minimized.
The rearranged integer must not contain any leading zeros, unless num itself is equal to
Return the rearranged integer with the smallest value.
Constraints:
num
You are given an integer num. Rearrange the digits of num such that its numerical value is minimized.
The rearranged integer must not contain any leading zeros, unless num itself is equal to
Return the rearranged integer with the smallest value.
Constraints:
num