apps/sudoku-solver/controllers/sudoku-solver.js
// num to the given row,col location.
num to the given row,col location.
num to the given row col location .
isSafe(grid, row, col, num) {
    return !this.usedInRow(grid, row, num) &&
      !this.usedInCol(grid, col, num) &&
      !this.usedInBox(grid, row - row % 3, col - col % 3, num);
  }
isSafe ( grid , row , col , num ) { return ! this . usedInRow ( grid , row , num ) && ! this . usedInCol ( grid , col , num ) && ! this . usedInBox ( grid , row - row % 3 , col - col % 3 , num ) ; }
num to the given row,col location.
num to the given row col location .
// Check if 'num' is not already placed in current row, // current column and current 3x3 box