ckrbd.js
// Counts the number of ways dfs can get to each cell from a given node.
Counts the number of ways dfs can get to each cell from a given node.
Counts the number of ways dfs can get to each cell from a given node .
function depthFirstMarkup(i, j, lvl){
    if (lvl == 0) {
        cellChildren(i,j).forEach(cell => {image[cell.i][cell.j]++;});
    } else {
        children(i,j,lvl).forEach(node => { depthFirstMarkup(node.i, node.j, lvl-1); });
    }
}
function depthFirstMarkup ( i , j , lvl ) { if ( lvl == 0 ) { cellChildren ( i , j ) . forEach ( cell => { image [ cell . i ] [ cell . j ] ++ ; } ) ; } else { children ( i , j , lvl ) . forEach ( node => { depthFirstMarkup ( node . i , node . j , lvl - 1 ) ; } ) ; } }
Counts the number of ways dfs can get to each cell from a given node.
Counts the number of ways dfs can get to each cell from a given node .