We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b241aa7 + 24fc490 commit 6e04fd0Copy full SHA for 6e04fd0
1372-RichestCustomerWealth.py
@@ -0,0 +1,13 @@
1
+class Solution:
2
+ def maximumWealth(self, accounts: List[List[int]]) -> int:
3
+ maxSum = 0
4
+ for row in range(len(accounts)):
5
+ runningSum = 0
6
+ for col in range(len(accounts[row])):
7
+ runningSum =runningSum+ accounts[row][col]
8
+
9
+ if runningSum>maxSum:
10
+ maxSum = runningSum
11
+ return(maxSum)
12
13
0 commit comments