Skip to content

Commit a20a0e6

Browse files
Merge pull request #3046 from jyotirmoydotdev/main
Fix binary search logic in 0074-search-a-2d-matrix.go
2 parents 347c282 + aac0ca6 commit a20a0e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/0074-search-a-2d-matrix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func searchMatrix(matrix [][]int, target int) bool {
1818
}
1919
}
2020

21-
if top >= bot {
21+
if !(top <= bot) {
2222
return false
2323
}
2424

0 commit comments

Comments
 (0)