We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4a6564 commit 69fdf1cCopy full SHA for 69fdf1c
sudoku_alg.py
@@ -56,15 +56,15 @@ def solve(board):
56
57
if __name__ == '__main__':
58
board = [
59
- [7, 8, 0, 4, 0, 0, 1, 2, 0],
60
- [6, 0, 0, 0, 7, 5, 0, 0, 9],
61
- [0, 0, 0, 6, 0, 1, 0, 7, 8],
62
- [0, 0, 7, 0, 4, 0, 2, 6, 0],
63
- [0, 0, 1, 0, 5, 0, 9, 3, 0],
64
- [9, 0, 4, 0, 6, 0, 0, 0, 5],
65
- [0, 7, 0, 3, 0, 0, 0, 1, 2],
66
- [1, 2, 0, 0, 0, 7, 4, 0, 0],
67
- [0, 4, 9, 2, 0, 6, 0, 0, 7]
+ [0, 0, 0, 0, 0, 0, 2, 0, 0],
+ [0, 8, 0, 0, 0, 7, 0, 9, 0],
+ [6, 0, 2, 0, 0, 0, 5, 0, 0],
+ [0, 7, 0, 0, 6, 0, 0, 0, 0],
+ [0, 0, 0, 9, 0, 1, 0, 0, 0],
+ [0, 0, 0, 0, 2, 0, 0, 4, 0],
+ [0, 0, 5, 0, 0, 0, 6, 0, 3],
+ [0, 9, 0, 4, 0, 0, 0, 7, 0],
+ [0, 0, 6, 0, 0, 0, 0, 0, 0]
68
]
69
solve(board)
70
print_board(board)
0 commit comments