Richest Customer Wealth
July 27, 2020
Richest Customer Wealth
class Solution {
public int maximumWealth(int[][] accounts) {
return Arrays.stream(accounts).map(arr -> Arrays.stream(arr).sum())
.max(Integer::compareTo)
.get();
}
}