Skip to content

Instantly share code, notes, and snippets.

@praveeng1618
Created January 15, 2024 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praveeng1618/ca05be65abf5d42d345eafe0fed958cd to your computer and use it in GitHub Desktop.
Save praveeng1618/ca05be65abf5d42d345eafe0fed958cd to your computer and use it in GitHub Desktop.
1672. Richest Customer Wealth Leetcode
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