Skip to content

13307130346_billlai95_OJ12.1 - #449

Merged
whimsycwd merged 1 commit into
ds-sww:masterfrom
WenxingLai:OJ12.1
Dec 9, 2014
Merged

13307130346_billlai95_OJ12.1#449
whimsycwd merged 1 commit into
ds-sww:masterfrom
WenxingLai:OJ12.1

Conversation

@WenxingLai

Copy link
Copy Markdown
Contributor

终于。二分边界傻傻似乎分清楚了。

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good~ 多练练, 代码,似乎不是很简洁.

mid = (l+r)/2; 对应l = mid+1 | r = mid
mid = (l+r)/2 +1; 对应 r= mid - 1, l = mid;
这样就不会死循环了. 简单说就是保证每次循环, 范围都在缩小

whimsycwd added a commit that referenced this pull request Dec 9, 2014
13307130346_billlai95_OJ12.1
@whimsycwd
whimsycwd merged commit 18d29c7 into ds-sww:master Dec 9, 2014
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