← Back to all problems
Easy

Richest Customer Wealth

Updated Feb 24, 2026

Problem

Return max row sum in accounts matrix.

Constraints

1 <= m, n <= 50

Examples

Example 1

Input: {"accounts": [[1, 2, 3], [3, 2, 1]]}
Output: 6

Function Signature

def maximumWealth(self, accounts: list[list[int]]) -> int

How to Submit

Implement a Solution class with a maximumWealth method.

Your method will be called with the input parameters and should return the answer.