Skip to content

Commit b830809

Browse files
committed
cpp
1 parent ef14bb6 commit b830809

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

1672.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class Solution {
2+
public:
3+
int maximumWealth(vector<vector<int>>& accounts) {
4+
long long int maxi=0;
5+
for(int i=0;i<accounts.size();i++){
6+
long long int sum=0;;
7+
for(int j=0;j<accounts[i].size();j++){
8+
sum+=(accounts[i][j]);
9+
}
10+
maxi=max(maxi,sum);
11+
}
12+
return maxi;
13+
14+
}
15+
16+
};

0 commit comments

Comments
 (0)