Skip to content

Commit aaf2ee8

Browse files
committed
Add solution #36
1 parent 6542e42 commit aaf2ee8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

solutions/0036-valid-sudoku.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ var isValidSudoku = function(board) {
2929
const options = [rows[i], columns[j], boxes[k]];
3030

3131
if (options.some(option => option.has(value))) return false;
32-
if (value === '.') continue;
33-
options.forEach(option => option.add(value));
32+
if (value !== '.') options.forEach(option => option.add(value));
3433
}
3534
}
3635

0 commit comments

Comments
 (0)