-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
33 (java)、题目编号统一修改为四位数 #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@bluesword12350 感谢老哥为编号做出了调整 ❤
yanglbme
yanglbme
reviewed
Nov 6, 2018
int low = 0,high = A.length - 1;
while (low <= high) {
int mid = (low + high) / 2;
if (target < A[mid]) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
求 mid,此写法有溢出的可能噢,换成以下写法可能会好一些哈~
int mid = low + ((hight - low) >> 1);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK,没注意。
@bluesword12350 有个小建议哈,以后提交信息都采用英文的方式,即使 蹩脚 也没关系。这个项目有几个外国小哥参与呢。
我给你发了邀请啦, Welcome to Doocs
@yanglbme 额,OK,多谢
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
目录中题目编号统一调整为四位数
README.md 中 题目url统一修复