Money Change Problem Question

Why 1 is being subtracted in the finding the video solution of the question solving.

Hello @Sakshi2004
if you will not do -1 then you will get element present at +1 index because lower bound gives you the index of the element to which this element is present 1 next.
as in the case of 168 it was giving for 200 you can check this by not writing -1.
if you still have any doubt you can ask here:
Happy Learning!!

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.