Coin change dp problem

not getting test case ,please explain
what is 10
how output is 5

@S18LPC-OL0078
Hello Rishav,
these are the five possible ways for the given test case
10 4
2 5 3 6

{2,2,2,2,2}
{2,2,6}
{2,3,5}
{2,2,3,3}
{5,5}

@S18LPC-OL0078
Hello rishav,
if ur doubt is resolved then pls mark it as resolved

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.