Skip to content
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

Fix lookups count in binary search #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

podliy16
Copy link

subj

Based on this issue #51

Indeed we need only 11 lookups for this test case.

@Tadwork
Copy link

Tadwork commented Nov 29, 2016

As I mentioned in the comment to #51 changing it to 11 will break the test for the simpler implementation. it might be better to test for 11 or 13 or just write a comment instead

@podliy16
Copy link
Author

Yeah, read your answer. I've added both 11 and 13 as correct answers, add comment in test why we have 2 expected values.

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