In this mcq given in algorithms STL module,
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) ;
answer should logarithmic time complexity, it is mentioned linear,
