at 5:30 why is it elephant not dog?
At 5:30 why is it elephant not dog?
as we are finding upper bound for d
It will be elephant. You can also observe the output in the video.
lower_bound returns an iterator pointing to the first element in the range [first,last) which has a value not less than ‘val’.
upper_bound returns an iterator pointing to the first element in the range [first,last) which has a value greater than ‘val’.
Refer these for clarity:
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.