class Solution {
public:
string printMinNumber(vector<int>& nums) {
sort(nums.begin(), nums.end(), [](int a, int b){
return to_string(a) + to_string(b) < to_string(b) + to_string(a);});
string ret;
for(int num : nums)
ret += to_string(num);
return ret;
}
};
sixsixsix