A memoize recursive implementation of LCS problem
let arr = new Array ( 100 ) ; for ( let i = 0 ; i < 100 ; i ++ ) { arr [ i ] = new Array ( 100 ) ; for ( let j = 0 ; j < 100 ; j ++ ) { arr [ i ] [ j ] = new Array ( 100 ) ; for ( let k = 0 ; k < 100 ; k ++ ) { arr [ i ] [ j ] [ k ] = - 1 ; } } }