LeetCode/NeetCodeRoadmap/Arrays_and_Hashing/36_Valid_Sudoku.py
2023-08-21 22:15:44 -07:00

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"]]))