in 12th line code if i use upperbound in case of lowerbound as i passing the comparator function in upperbound too then why it is not working?
if lowerbound or upperbound returning the address then why we have not used int *lb or auto it?
Problem related to pointers and STL
Hey @vikash3303
Follow this :Why we did lower_bound()-coins-1
Regarding 2nd doubt ,since we are doing -coins -1 so the value becomes integer at last
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.