Using results for the first ( i - 1 ) elements , calculate the result for the ith element
for ( int i = 1 ; i < n ; i ++ ) { int minimum = Integer . MAX_VALUE ; for ( int j = small ; j <= large ; j ++ ) {