Javascript program to memoize recursive implementation of LCS problem
let arr = new Array ( 1000 ) ; for ( let i = 0 ; i < 1000 ; i ++ ) { arr [ i ] = new Array ( 1000 ) ; for ( let j = 0 ; j < 1000 ; j ++ ) { arr [ i ] [ j ] = - 1 ; } }