What should i change to get output of the coins used instead of min number of coins count can you change that in code

@kishoretaru,
You can simply store two things in you DP (e.g a pair), first the minimum number of coins, and second, the last coin used. Then after the function call is complete, you can simply iterate backwards starting from the last value, and jumping backwards, according to the last coin used.

can you change that in the code

@kishoretaru,
Is there a link of the problem you are talking about…?

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.

@kishoretaru
I have added the code.