Open main menu

CDOT Wiki β

Changes

TriForce

2 bytes removed, 13:10, 3 April 2019
Assignment 1: Sudoku Solver
/* Check if 'num' is not already placed in current row,
current column and current 4x4 box */
return !UsedInRow(grid, row, num) && !UsedInCol(grid, col, num) &&
!UsedInBox(grid, row - row%4 , col - col%4, num)&&
grid[row][col]==UNASSIGNED;