I did both bottom up and top down versions of this problem.But dont know whether my approach is right or wrong.I am getting wrong ans.
Min Jumps required
corrected codes respectively:
1 Like
Thanks I got it Integer.MAX_VALUE +1 becomes negative value.
1 Like