Skip to content

Fix lookups count in binary search#53

Open
podliy16 wants to merge 2 commits into
kolodny:masterfrom
podliy16:master
Open

Fix lookups count in binary search#53
podliy16 wants to merge 2 commits into
kolodny:masterfrom
podliy16:master

Conversation

@podliy16

Copy link
Copy Markdown

subj

Based on this issue #51

Indeed we need only 11 lookups for this test case.

@Tadwork

Tadwork commented Nov 29, 2016

Copy link
Copy Markdown

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
Copy Markdown
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