2
Using binary search (mid = ⌊(low + high)/2⌋) on the sorted array [3, 7, 8, 14, 15, 20, 23, 35, 39], how many comparisons with array elements are needed to find 7?
Medium
Using binary search (mid = ⌊(low + high)/2⌋) on the sorted array [3, 7, 8, 14, 15, 20, 23, 35, 39], how many comparisons with array elements are needed to find 7?
Log in to join the discussion.