exercises icon indicating copy to clipboard operation
exercises copied to clipboard

Fix lookups count in binary search

Open podliy16 opened this issue 8 years ago • 2 comments

subj

Based on this issue #51

Indeed we need only 11 lookups for this test case.

podliy16 avatar Nov 26 '16 21:11 podliy16

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

Tadwork avatar Nov 29 '16 03:11 Tadwork

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

podliy16 avatar Nov 30 '16 20:11 podliy16