easy c++ solution
smjh\n\n long long smallestNumber(long long num) {\n      \n    bool sign = num>0;\n        num = abs(num);\n        if(sign){\n           string str = to_strin
smjh\n```\n long long smallestNumber(long long num) {\n      \n    bool sign = num>0;\n        num = abs(num);\n        if(sign){\n           string str = to_string(num);\n            sort(str.begin(),str.end());\n            int i= 0;\n            while(str[i]==\'0\'){\n                i++;\n            }\n            swap(str[0],str[i]);\n            num=stoll(str);\n            \n        }\n        else{\n            \n            string str = to_string(num);\n            sort(str.begin(),str.end(),greater());\n            num = stoll(str) * (-1);\n        }\n        return num;\n    }\n```
['C']