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
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.