Day6. Namespace style

This commit is contained in:
Electrominch
2022-10-07 16:36:27 +03:00
parent 62104da8f1
commit 5cae083979
51 changed files with 589 additions and 202 deletions

View File

@@ -1,19 +1,18 @@
namespace _36._Valid_Sudoku
namespace _36._Valid_Sudoku;
internal class Program
{
internal class Program
static void Main(string[] args)
{
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));
}
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));
}
}