Also print the coins

please also tell the way, to also print the coins used …

@Chhayansh it can be done in O(M*N) complexity.
Here is the code


If this resolves your doubt mark it as resolved

@Chhayansh in this we are finding the changes for every amount from i to changeamount, in doing so we also keep track of the that which denom coin is used for it.

please explain the code…i not getting the code

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.