Binary search - First & Last Occurence

Is this same as what we do using Binary Search STL, lower bound & upper bound?

hello @gambhirrahul0
yeah the idea is same ,implementation wise it is bit different.

refer this for implementation details->lower bound

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.