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

Commitaef1c92

Browse files
committed
02 (1) find first ".." using binary search
1 parent993b820 commitaef1c92

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎binarysearch/_02_FirstBadVersion/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To make life easier, we can consider the very easy situation, only one number ex
1717
isBad false false (null)
1818
expect = 2 => return left + 1 (return the order not the index of bad version)
1919
********************************************************************
20-
* Summary: return left
20+
* Summary: return left+ 1
2121
*/
2222

2323
```

‎binarysearch/_02_FirstBadVersion/Solution.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020
package_02_FirstBadVersion;
2121

22+
/** see test {@link _02_FirstBadVersion.SolutionTest } */
2223
publicclassSolution {
2324

2425
publicintfindFirstBadVersion(intn) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp