STL Quiz, question 2

This question uses binary search, however the correct answer is " output is 1 with linear time complexity" instread of logarithmic time complexity.
Please guide as to how we reach this correct answer. (since binary search complexity is logarithmic)

@ilovetocode calculating mid pt in list is o(n) thats why

ohk…thanks for your help!

@ilovetocode you are welcome