Skip to content

Commit 727c5d2

Browse files
corrected a comment in line 12
1 parent ebada45 commit 727c5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/09-linear search/code/src/com/kunal/MaxWealth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public int maximumWealth(int[][] accounts) {
99
// account = col
1010
int ans = Integer.MIN_VALUE;
1111
for (int[] ints : accounts) {
12-
// when you start a new col, take a new sum for that row
12+
// when you start a new row, take a new sum for that row
1313
int sum = 0;
1414
for (int anInt : ints) {
1515
sum += anInt;

0 commit comments

Comments
 (0)