LeetCode 1672. Richest Customer Wealth (Java)
IPFS
class Solution {
public int maximumWealth(int[][] accounts) {
int max=0;
for(int[] i1: accounts){
int wealth = 0;
for(int i2: i1){
wealth += i2;
}
max = Math.max(max, wealth);
}
return max;
}
}
喜欢我的作品吗?别忘了给予支持与赞赏,让我知道在创作的路上有你陪伴,一起延续这份热忱!