why we can’t use lower bound function in it…?
Greedy-indian currency change
@tishya_goyal well you can but it will be a bit diff because with lower bound we can get upper values sometimes and if element present then the same value. so have to check whether to do -1 or not so using upper its easy as always we get upper value
hope its clear if yes dont forget to mark the doubt resolved and hit like 
1 Like
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.