13
Using binary search (mid = ⌊(low + high)/2⌋) on the sorted array [3, 5, 11, 19, 23, 27, 32, 35, 39], how many comparisons with array elements are needed to find 39?
Medium
Using binary search (mid = ⌊(low + high)/2⌋) on the sorted array [3, 5, 11, 19, 23, 27, 32, 35, 39], how many comparisons with array elements are needed to find 39?
Log in to join the discussion.