Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bf5bdde

Browse files
refactor 1198
1 parent bd55005 commit bf5bdde

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/fishercoder/solutions/_1198.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ public static class Solution1 {
2020
public int smallestCommonElement(int[][] mat) {
2121
int m = mat.length;
2222
int n = mat[0].length;
23-
int minCommon;
2423
for (int j = 0; j < n; j++) {
25-
minCommon = mat[0][j];
24+
int minCommon = mat[0][j];
2625
int i = 1;
2726
for (; i < m; i++) {//we'll start from the second row
2827
if (thisRowHasThisNumber(mat[i], minCommon)) {

0 commit comments

Comments
 (0)