You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Desc.: You are given an m x n integer grid accounts where accounts[i][j] is the amount of money the ith customer has in the jth bank.
// Return the wealth that the richest customer has.
// Expl.:
const biggestArray = (accounts: number[][]): number => {
return Math.max(...accounts.map(account => account.reduce((current, total) => total + current)))