Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 27, 2025. It is now read-only.

Commit 7da23f9

Browse files
authored
Update 37. Sudoku Solver.md
1 parent 9f701d5 commit 7da23f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎37. Sudoku Solver.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ class Solution {
3838
for y in 0..<9 {
3939
for x in 0..<9 {
4040
let c = board[y][x]
41+
guard c != "." else {
42+
continue
43+
}
4144
clo[y].insert(c)
4245
row[x].insert(c)
4346
block[x/3 + (y/3) * 3].insert(c)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /