两行代码,极简题解
function PrintMinNumber(numbers)
{
// write code here
numbers.sort((a, b) => +(a + '' + b) - +(b + '' + a))
return numbers.join('');
}
module.exports = {
PrintMinNumber : PrintMinNumber
};
两行代码,极简题解
function PrintMinNumber(numbers)
{
// write code here
numbers.sort((a, b) => +(a + '' + b) - +(b + '' + a))
return numbers.join('');
}
module.exports = {
PrintMinNumber : PrintMinNumber
};