标签:for length i++ class code let rip asc bsp
//三维 let dp = []; for(let i=0;i<matrix.length;i++){ let demo = new Array(matrix[0].length); for(let j=0;j<matrix[0].length;j++){ demo[j] = new Array(len); for(let k=0;k<len;k++){ demo[j][k] = 0; } } dp.push(demo) }
//二维 let dp = []; for(let i=0;i<matrix.length;i++){ let demo = new Array(matrix[0].length); for(let j=0;j<matrix[0].length;j++){ demo[j] = 0; } dp.push(demo) }
标签:for length i++ class code let rip asc bsp
原文地址:https://www.cnblogs.com/panjingshuang/p/11978292.html