19 lines
518 B
Python
19 lines
518 B
Python
def isValidSudoku(board):
|
|
"""
|
|
:type board: List[List[str]]
|
|
:rtype: bool
|
|
"""
|
|
x = []
|
|
y = []
|
|
for x in board:
|
|
|
|
|
|
print(isValidSudoku([["5","3",".",".","7",".",".",".","."]
|
|
,["6",".",".","1","9","5",".",".","."]
|
|
,[".","9","8",".",".",".",".","6","."]
|
|
,["8",".",".",".","6",".",".",".","3"]
|
|
,["4",".",".","8",".","3",".",".","1"]
|
|
,["7",".",".",".","2",".",".",".","6"]
|
|
,[".","6",".",".",".",".","2","8","."]
|
|
,[".",".",".","4","1","9",".",".","5"]
|
|
,[".",".",".",".","8",".",".","7","9"]])) |