Skip to content

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 3 commits into from
Nov 6, 2018
Merged

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

merged 3 commits into from
Nov 6, 2018

Conversation

bluesword12350
Copy link
Member

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

@yanglbme
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

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

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
@yanglbme
Copy link
Member

yanglbme commented Nov 6, 2018

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

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

@bluesword12350
Copy link
Member Author

bluesword12350 commented Nov 6, 2018

@yanglbme 额,OK,多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants