Problem 2165 · Medium

Smallest Value of the Rearranged Number

Rearrange the digits of a number into the smallest value without creating a leading zero, keeping the original sign. The visual sorts the digits and moves a non-zero digit to the front.

Open the interactive visualisation