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

Commitccf7573

Browse files
authored
Update 2-278. First Bad Version
1 parentd053e95 commitccf7573

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎2-278. First Bad Version

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ why left = mid + 1 ✅
1616
in what scenario we use left = mid, left = mid + 1 and right = mid, right = mid - 1? ✅
1717

1818

19+
Algorithm1 repeat
20+
Solution 2:
21+
1922
def firstBadVersion(self, n) -> int:
2023
left, right = 1, n
2124

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp