Minimum jumps required

getting run error in all the test cases. can anyone help to solve this.
ide->https://ide.codingblocks.com/s/195180

Hi @mikkyimran,
ur code is correct. u just add endl at d end of “”“cout<<minjumps(a,n)”"" ur code will work.
i.e change cout<<minjumps(a,n); to cout<<minjumps(a,n)<<endl;
Hope dis resolves ur doubt.
If u still have any doubts, feel free to post them here.

1 Like