📅  最后修改于: 2022-03-11 14:52:02.305000             🧑  作者: Mango
function largestOfFour(arr) {
var newArr = [];
for(var i = arr.length - 1; i >= 0; i--){
arr[i].sort(function(a, b){return a - b});
newArr.push(arr[i][arr.length - 1])
}
newArr.sort(function(a, b){return -b - a});
return newArr;
}