not like us
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def smallestNumber(self, num: int) -> int:
        if(num>0):
            a=str(num)
            b=sorted(a)
            c=(''.join(b))
            x=c.count("0")
            if(x>0):
                c=c.replace("0","")
                d=c[0] + "0" * x + c[1:]
                return int(d)
            c=(''.join(b))
            return int(c)   
        else:
            a=str(abs(num))
            b=sorted(a)
            d=b[::-1]
            c=int(''.join(d))
            return -c  
            
            
                    
        
```
['Python3']