Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 398 Bytes

1672. 最富有客户的资产总量.md

File metadata and controls

15 lines (13 loc) · 398 Bytes
/**
 * @param {number[][]} accounts
 * @return {number}
 */
var maximumWealth = function (accounts) {
    return accounts.reduce((max, account) => {
        const current = account.reduce((total, value) => total + value, 0);
        return Math.max(max, current);
    }, 0);
};