inside the compare function can you explain how return a<=b made the lower bounds function return the address of element greater than money.
also can’t we simply use the upperbounds here.
Compare function
@anasmir24 yes compare function in lowerbound is of no use simple use upper and lower inbuilt ones and use -1 or +1 to access less or greater.
just for info a<=b in lowerbound compare converts it into upperbound . just a syntax developers made it that way to work like this.
i hope its clear if yes dont forget to mark it as resolved 