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

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
yanglbme merged 3 commits into doocs:master from bluesword12350:master
Nov 6, 2018
Merged

33 (java)、题目编号统一修改为四位数 #91

yanglbme merged 3 commits into doocs:master from bluesword12350:master
Nov 6, 2018

Conversation

@bluesword12350
Copy link
Member

@bluesword12350 bluesword12350 commented Nov 6, 2018

  1. Search in Rotated Sorted Array(java)
    目录中题目编号统一调整为四位数
    README.md 中 题目url统一修复

Copy link
Member

yanglbme commented Nov 6, 2018

@bluesword12350 感谢老哥为编号做出了调整 ❤

int low = 0,high = A.length - 1;
while (low <= high) {
int mid = (low + high) / 2;
if (target < A[mid]) {
Copy link
Member

@yanglbme yanglbme Nov 6, 2018

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);

Copy link
Member Author

@bluesword12350 bluesword12350 Nov 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK,没注意。

@yanglbme yanglbme merged commit 682e002 into doocs:master Nov 6, 2018
Copy link
Member

yanglbme commented Nov 6, 2018

@bluesword12350 有个小建议哈,以后提交信息都采用英文的方式,即使 蹩脚 也没关系。这个项目有几个外国小哥参与呢。

我给你发了邀请啦, Welcome to Doocs

Copy link
Member Author

bluesword12350 commented Nov 6, 2018
edited
Loading

@yanglbme 额,OK,多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@yanglbme yanglbme yanglbme left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /