JAVA_LeetCode 1672_Richest Customer Wealth 풀이 class Solution { public int maximumWealth(int[][] accounts) { int max = 0, sum = 0; // 배열 요소중 최대값을 찾는다. for(int i = 0; i < accounts.length; i++){ sum = 0; for(int j = 0; j < accounts[i].length; j++) sum += accounts[i][j]; if(sum > max) max = sum; } return max; } } * 출처 https://leetcode.com/problems/richest-customer-wealth...
JAVA_LeetCode 1672_Richest Customer Wealth에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.