Day5
This commit is contained in:
19
36. Valid Sudoku/Program.cs
Normal file
19
36. Valid Sudoku/Program.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace _36._Valid_Sudoku
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var arr = new char[][] { new char[]{'.', '.', '4', '.', '.', '.', '6', '3', '.'},
|
||||
new char[]{'.', '.', '.', '.', '.', '.', '.', '.', '.'},
|
||||
new char[]{'5', '.', '.', '.', '.', '.', '.', '9', '.'},
|
||||
new char[]{'.', '.', '.', '5', '6', '.', '.', '.', '.'},
|
||||
new char[]{'4', '.', '3', '.', '.', '.', '.', '.', '1'},
|
||||
new char[]{'.', '.', '.', '7', '.', '.', '.', '.', '.'},
|
||||
new char[]{'.', '.', '.', '5', '.', '.', '.', '.', '.'},
|
||||
new char[]{'.', '.', '.', '.', '.', '.', '.', '.', '.'},
|
||||
new char[]{'.', '.', '.', '.', '.', '.', '.', '.', '.'}};
|
||||
Console.WriteLine(new Solution().IsValidSudoku(arr));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user