Tap here to switch tabs
Problem
Submissions

Problem: Richest Customer Wealth

med
30 min
Try to solve the Richest Customer Wealth problem.

Statement

You are given an m×nm \times n integer grid accounts where accounts[i][j] is the amount of money customer ii has in bank jj.

A customer’s wealth is the total sum of money across all their bank accounts. The richest customer is the customer with the highest wealth.

Return the wealth of the richest customer.

Constraints:

  • m == accounts.length

  • n == accounts[i].length

  • 1≤1 \le m, n ≤50\le 50

  • 1≤1 \le accounts[i][j] ≤100\le 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Richest Customer Wealth

med
30 min
Try to solve the Richest Customer Wealth problem.

Statement

You are given an m×nm \times n integer grid accounts where accounts[i][j] is the amount of money customer ii has in bank jj.

A customer’s wealth is the total sum of money across all their bank accounts. The richest customer is the customer with the highest wealth.

Return the wealth of the richest customer.

Constraints:

  • m == accounts.length

  • n == accounts[i].length

  • 1≤1 \le m, n ≤50\le 50

  • 1≤1 \le accounts[i][j] ≤100\le 100