Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaac0ca6

Browse files
Fix binary search logic in 0074-search-a-2d-matrix.go
1 parenta1113e2 commitaac0ca6

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-
iftop>=bot {
21+
if!(top<=bot) {
2222
returnfalse
2323
}
2424

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp