Sunday, February 14, 2021

Leetcode Everyday: 1672. Richest Customer Wealth. Easy

public class Solution {
    public int MaximumWealth(int[][] accounts) {
        return accounts.Select(a => a.Sum()).Max();
    }
}
Source: https://leetcode.com/problems/richest-customer-wealth/

No comments:

Post a Comment