Minimum coins to given value

why this code is not passing all test cases??
question is present in before code.

HELLO @ankit_verma
CHECK NOW->

@aman212yadav no it is not working still

PLS SHARE THE PROBLEM LINK WITH ME

https://cses.fi/problemset/task/1634/

image

IF THE FUNCTION RETURNS INT_MAX THEN FOR THAT CASE PRINT -1


i already do that update in this code but also not get accepted

wait 1 second…

shows run time error

check dp array size ,it should be value+1

1 Like

ohh thanks
essi silly mistake le baithti h contest m😂

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.