-
1672. Richest Customer Wealth javaLeetCode_Study_Plan/Programming Skills 2022. 9. 21. 00:03
https://leetcode.com/problems/richest-customer-wealth/?envType=study-plan&id=programming-skills-i
class Solution { public int maximumWealth(int[][] accounts) { int max = -1; for(int i = 0; i < accounts.length; i++){ int sum = 0; for(int num:accounts[i]){ sum += num; } max = Math.max(max, sum); } return max; } }
'LeetCode_Study_Plan > Programming Skills' 카테고리의 다른 글
566. Reshape the Matrix java (1) 2022.09.21 1572. Matrix Diagonal Sum java (0) 2022.09.21 283. Move Zeroes java (0) 2022.09.20 1588. Sum of All Odd Length Subarrays java (1) 2022.09.20 1232. Check If It Is a Straight Line java (1) 2022.09.20