Problem in money change

How it is giving 100 as output even after subtracting 1 from lb. (after passing compare function as parameter)

@itismohiton hey when you make your own comparator than you do nt have to subtract 1 from it ,if you use lb with comparator than you have to subtract 1 as normal lb give one index greater than searching index.

Doubt resolved. Thank you very much sir.

@itismohiton anytime bro