Minimum jumps required to reach end of the array
public static int [ ] minJumps ( int [ ] arr ) { int dp [ ] = new int [ arr . length ] ; Arrays . fill ( dp , Integer . MAX_VALUE ) ; int n = dp . length ; dp [ n - 1 ] = 0 ; for ( int i = n - 2 ; i >= 0 ; i -- ) {