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

Commit6c4b42a

Browse files
committed
278 (2) add comments
1 parent5f9c720 commit6c4b42a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/_278_FirstBadVersion/SolutionTwo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
publicclassSolutionTwo {
2828

2929
// reduce to only two versions left and then make the judgment.
30+
// invariant: if bad version exists, it is within [left : right]
3031
publicintfirstBadVersion(intn) {
3132
intleft =1;
3233
intright =n;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp