Do lower bound and upper bound functions work only in sorted arrays?
Functions working
@sasanand786,
Yes!!!
They use they the concept of binary search, thus they need to be sorted, in order to give the correct output in O(log(n)).
Thanks.My doubt is resolved.
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.
the page could not be found.