dp [ i ] [ j ] denotes the minimum number of elements left in the subarray arr [ i . . j ] .
let dp = new Array ( MAX ) ; for ( let i = 0 ; i < MAX ; i ++ ) { dp [ i ] = new Array ( MAX ) ; for ( let j = 0 ; j < MAX ; j ++ ) { dp [ i ] [ j ] = 0 ; } } function minSizeRec ( arr , low , high , k ) {