Created
January 15, 2024 05:43
-
-
Save praveeng1618/ca05be65abf5d42d345eafe0fed958cd to your computer and use it in GitHub Desktop.
1672. Richest Customer Wealth Leetcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution: | |
def maximumWealth(self, accounts: List[List[int]]) -> int: | |
for i in range(0, len(accounts)): | |
accounts[i] = sum(accounts[i]) | |
return max(accounts) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment