Movatterモバイル変換


[0]ホーム

URL:


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

Commitccde28b

Browse files
authored
Improved task 36
1 parent7f8f9d4 commitccde28b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎LeetCodeNet/G0001_0100/S0036_valid_sudoku/Solution.cs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
usingSystem.Collections.Generic;
2-
31
namespaceLeetCodeNet.G0001_0100.S0036_valid_sudoku{
42

53
// #Medium #Top_Interview_Questions #Array #Hash_Table #Matrix #Data_Structure_I_Day_5_Array
64
// #Top_Interview_150_Matrix #2025_06_30_Time_1_ms_(98.25%)_Space_48.16_MB_(85.00%)
75

6+
usingSystem.Collections.Generic;
7+
88
publicclassSolution{
99
publicboolIsValidSudoku(char[][]board){
1010
bool[,]rows=newbool[9,9];
@@ -15,13 +15,11 @@ public bool IsValidSudoku(char[][] board) {
1515
if(!isValidCase(board,i,j,rows,cols,blocks)){
1616
returnfalse;
1717
}
18-
1918
if(i!=j&&!isValidCase(board,j,i,rows,cols,blocks)){
2019
returnfalse;
2120
}
2221
}
2322
}
24-
2523
returntrue;
2624
}
2725

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp