MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / sudoku.py

File sudoku.py

backtracking/sudoku.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2Given a partially filled 9x9 2D array, the objective is to fill a 9x9
3square grid with digits numbered 1 to 9, so that every row, column, and
4and each of the nine 3x3 sub-grids contains all of the digits.

Callers

nothing calls this directly

Calls 2

print_solutionFunction · 0.85
sudokuFunction · 0.85

Tested by

no test coverage detected