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)