apps/sudoku-solver/controllers/sudoku-solver.js
// within the specified 3x3 box matches the given number.
within the specified 3x3 box matches the given number.
within the specified 3x3 box matches the given number .
usedInBox(grid, boxStartRow, boxStartCol, num) {
    for (let row = 0; row < 3; row++) {
      for (let col = 0; col < 3; col++) {
        if (grid[row + boxStartRow][col + boxStartCol] === num) {
          return true;
        }
      }
    }
    return false;
  }
usedInBox ( grid , boxStartRow , boxStartCol , num ) { for ( let row = 0 ; row < 3 ; row ++ ) { for ( let col = 0 ; col < 3 ; col ++ ) { if ( grid [ row + boxStartRow ] [ col + boxStartCol ] === num ) { return true ; } } } return false ; }
within the specified 3x3 box matches the given number.
within the specified 3x3 box matches the given number .