Q2. 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) ;
why is the answer : time for linear traversal?
Q8.
Why the output is 132
begin()+3 will be the 3rd element or 4th element?