Please check code for Minimum jumps required problem


Getting run error

hello @sahilkhan2312000131
u missed that a[i] can be 0 as well.

also answer will not be always possible , so handle that as well.

hint -> first try to frame a recursive relation

Coding Blocks IDE
Please check code

check now->

still not passing 1 test case

try again->

ss

working fine on my side.

try to submit it here->
https://hack.codingblocks.com/app/contests/2134/36/problem

Ya it is passing all test cases there… but not in challenges

pls share screenshot of the question . . . . . .that is given in challenge

its exactly the same question, pls clear the cache and try to submit again.

if it still fails then report it to support team.
email -> [email protected]

it worked after clearing cache…thank you so much

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.