I wanted to ask that in the video bhaiya has used the statement: int lb=lower_bound(coins,coins+n,key,compare)-coins-1; so the above will return the index for 50 but it should be for the 100 pls clarify ; money=168
Problem in finding the lower_bound in the money change problem
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.