Money change problem

sir what is a &b in the comparator body??
and how the condition is (return a<=b)??

a and b are your array values, and a<=b is simply the condition we need to check.
You can see this link if you want to know how they work https://www.geeksforgeeks.org/comparator-class-in-c-with-examples/ or http://www.cplusplus.com/reference/algorithm/sort/

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.