In question number 7 of quiz 1, lower_bound() would return s.end() which will be an iterator pointing to the next memory address of the last node, so it can be any value how it’s giving 6 as the output?
Question 7 of quiz 1 STL
hello @rishit517
in the case when the element being searched is greater than the maximum element the set the returned value is number of elements in the set which in this case is 6.