we have an array of element [ 1,3,5,8,9,2,6,7,6]
here each element represent maximum no. of jumps, let suppose we are on index 0 having value 1 so it can jump up to next 1 index { here next one index is only 1 which have value 3}. 1JUMP.
now my pointer is on 3 ,i can jump any one from next 3 index which can give the high value {next three index will be 2,3,4} having value {5,8,9} so i choose 9, now my pointer is on index 4. 1 JUMP.
AT pointer 4 value 9 i can jump up to next 9 index, but before to reach next 9 index, i complete traverse my array and reach at the end. so. after CONCLUDING this jump also. i can reach end to the array. 1 JUMP
SO TOTAL 3 JUMP WE RACH AT THE END OF ARRAY. { REMEMBER THESE ARE THE MIN JUMPS NOW YOU CAN ALSON FIND MAX JUMPS,CHOOSING THE MIN ELEMENT FROM THE ARRAY},