Given an array arr = {45,77,89,90,94,99,100} and key = 100; What are the mid values(corresponding array elements) generated in the first and second iterations?
(a) 90 and 99
(b) 90 and 100
(c) 89 and 94
(d) 94 and 99
The question was posed to me in an online interview.
The above asked question is from Binary Search Iterative topic in portion Searching of Data Structures & Algorithms II