class Solution {
public:
string largestNumber(vector[HTML_REMOVED]& nums) {
sort(nums.begin(), nums.end(), {
string sx = to_string(x);
string sy = to_string(y);
return sx + sy > sy + sx;
});
if(!nums[0]) return "0";
string res;
for(int i=0; i<nums.size(); i++){
res += to_string(nums[i]);
}
return res;
}
};