public static void main(String args[]){
        MinJumpToReachEnd mj = new MinJumpToReachEnd();
        int arr[] = {1,3,5,3,2,2,6,1,6,8,9};
        int r[] = new int[arr.length];
        int result = mj.minJump(arr,r);
        System.out.println(result);
        int i = arr.length-1;
        Arrays.toString(r);
        int arr1[] = {2,3,1,1,4};
        System.out.print(mj.jump(arr));
    }
https://leetcode.com/problems/jump-game-ii/
src/com/interview/dynamic/MinJumpToReachEnd.java