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

Commit6bbe8f5

Browse files
authored
remove extra line
no need to set `row` again after the first binary search
1 parent01a2b36 commit6bbe8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎74-Search-a-2D-Matrix.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def searchMatrix(self, matrix: List[List[int]], target: int) -> bool:
1414

1515
ifnot (top<=bot):
1616
returnFalse
17-
row= (top+bot)//2
17+
1818
l,r=0,COLS-1
1919
whilel<=r:
2020
m= (l+r)//2

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp