Choose the correct output and time complexity for the following code :
list< int > myList = { 2, 6, 12, 13, 15, 18, 20};
cout << binary_search(myList.begin(), myList.end(), 20) ;
a-Output is 20 and time complexity is Linear in size of the list.
b-Output is 1 and time complexity is Linear in size of the list.
c-Output is 20 and time complexity is Logarithmic in size of the list.
d-Output is 1 and time complexity is Logarithmic in size of the list.
Answer should be (d) but it is given (b) , right?