dp [ i ] [ j ] denotes the minimum number of elements left in the subarray arr [ i . . j ] .
static int dp [ ] [ ] = new int [ MAX ] [ MAX ] ; static int minSizeRec ( int arr [ ] , int low , int high , int k ) {