2021.01.06 연습

  • 사용언어 : java

class Solution {
    public int maximumWealth(int[][] accounts) {
        int result = 0;
        for (int[] i :  accounts) {
            int check= 0;
            for (int j : i) {
                check += j;
            }
            result = result < check ? check : result;
        }
        return result;
    }
}

Runtime: 0 ms, faster than 100.00% of Java online submissions for Richest Customer Wealth. Memory Usage: 38.6 MB, less than 73.16% of Java online submissions for Richest Customer Wealth.