Richest Customer Wealth
Easy
Arrays
Array
Matrix
Given m×n grid of bank accounts, return wealth of richest customer (max row sum).
Constraints
m,n ≤ 50
Examples
Example 1:
Input: 1 2 3
3 2 1
Output: 6
Example 2:
Input: 1 5
7 3
3 5
Output: 10
Tests:
Runtime:
Memory:
Test
Input:
Expected:
Got:
Click Run Code to test against sample cases, or Submit to test against all cases.
▲ Console