About indian money exchange

why we still do -1 in lower boind after using comparator ? plz explain i am not getting it

hello @avverma11057 -1 suggest that the element is not there in the array thats why we return -1.
but if the element is there in the array then this -1 will be updated to the location of the element in the array.

i am talking about lb=lower bo… - coins -1; this -1 after coins why we are doing it

hey @avverma11057 please share the code where you are facing the issue .
i will be able to explain in better way.

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.