Algorithm and stl money change problem

even after using comparator function in the lower bound function why is 1 still needed to be subtracted from int lb in the video?

lower_bound returns the index of the first index that is “greater than or equal to the key” .40.
If you want the first element SMALLER then, do this, cout << it - arr -1;

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.