Skip to content

Commit 010ad3a

Browse files
authored
Remove excessive check (#469)
1 parent a74ae2f commit 010ad3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backtracking/sudoku.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl Sudoku {
4949

5050
for i in (sec_row * 3)..(sec_row * 3 + 3) {
5151
for j in (sec_col * 3)..(sec_col * 3 + 3) {
52-
if y != i && x != j && self.board[i][j] == value {
52+
if self.board[i][j] == value {
5353
return false;
5454
}
5555
}

0 commit comments

Comments
 (0)