Skip to content

Commit

Permalink
Sudoku Solver bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi Zhang authored and Chi Zhang committed Dec 20, 2013
1 parent 78a9ed9 commit bd31c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C++/chapDFS.tex
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ \subsubsection{代码}
return false;
for (i = 3 * (x / 3); i < 3 * (x / 3 + 1); i++)
for (j = 3 * (y / 3); j < 3 * (y / 3 + 1); j++)
if (i != x && j != y && board[i][j] == board[x][y])
if ((i != x || j != y) && board[i][j] == board[x][y])
return false;
return true;
}
Expand Down

0 comments on commit bd31c27

Please sign in to comment.