We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a74ae2f commit 010ad3aCopy full SHA for 010ad3a
src/backtracking/sudoku.rs
@@ -49,7 +49,7 @@ impl Sudoku {
49
50
for i in (sec_row * 3)..(sec_row * 3 + 3) {
51
for j in (sec_col * 3)..(sec_col * 3 + 3) {
52
- if y != i && x != j && self.board[i][j] == value {
+ if self.board[i][j] == value {
53
return false;
54
}
55
0 commit comments