thiagowfx's avatar

¬ just serendipity 🍀 (not just serendipity)

LeetCode #1672: Richest Customer Wealth

• 20 words • 1 min • updated

LeetCode #1672: Richest Customer Wealth:

python
class Solution:
    def maximumWealth(self, accounts: List[List[int]]) -> int:
        return max(sum(customer_accounts) for customer_accounts in accounts)