Skip to content

Commit 3d33c53

Browse files
committed
Runtime: 14 ms (Top 30.54%) | Memory: 57.2 MB (Top 69.94%)
1 parent 70cc5b9 commit 3d33c53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/S/Search a 2D Matrix II/Search a 2D Matrix II.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 14 ms (Top 30.54%) | Memory: 57.2 MB (Top 69.94%)
12
class Solution {
23
public boolean searchMatrix(int[][] matrix, int target) {
34
int rows = matrix.length;
@@ -14,7 +15,7 @@ public boolean searchMatrix(int[][] matrix, int target) {
1415
int[] prospect;
1516
for (int i = 0; i <= lo; i++) {
1617
prospect = matrix[i];
17-
int l = 0;
18+
int l = 0;
1819
int h = cols;
1920
while (l + 1 < h) {
2021
int mid = l + (h - l) / 2;
@@ -30,4 +31,4 @@ public boolean searchMatrix(int[][] matrix, int target) {
3031
}
3132
return false;
3233
}
33-
}
34+
}

0 commit comments

Comments
 (0)