Skip to content

Commit f2c124c

Browse files
committed
Improved task 36
1 parent 0ac4796 commit f2c124c

File tree

1 file changed

+2
-3
lines changed
  • LeetCodeNet/G0001_0100/S0036_valid_sudoku

1 file changed

+2
-3
lines changed

LeetCodeNet/G0001_0100/S0036_valid_sudoku/readme.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ Determine if a `9 x 9` Sudoku board is valid. Only the filled cells need to be v
7777
## Solution
7878

7979
```csharp
80+
using System.Collections.Generic;
81+
8082
public class Solution {
8183
public bool IsValidSudoku(char[][] board) {
8284
bool[,] rows = new bool[9, 9];
@@ -87,13 +89,11 @@ public class Solution {
8789
if (!isValidCase(board, i, j, rows, cols, blocks)) {
8890
return false;
8991
}
90-
9192
if (i != j && !isValidCase(board, j, i, rows, cols, blocks)) {
9293
return false;
9394
}
9495
}
9596
}
96-
9797
return true;
9898
}
9999

@@ -110,5 +110,4 @@ public class Solution {
110110
return true;
111111
}
112112
}
113-
}
114113
```

0 commit comments

Comments
 (0)