Minimum Jumps Required

Approach : I have created an array which records the minimum jumps from a particular index to the last index.
I have started from the second last element and then traversed till the first element.

This is the link for the code.

@mananaroramail,
Use long instead of int. Code is correct.

Got it
Thanks a lot !!

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.