PythiloHard · 40 min · Task 95 of 100 · progress kept in this browser

Solve a four-by-four Sudoku

Solve a valid 4x4 Sudoku using digits 1 through 4, zeros as blanks, and 2x2 boxes. Return a solved new matrix or None if unsatisfiable. For multiple solutions choose the first from row-major blanks and ascending digits.

row = {1, 2}
column = {2, 3}
box = {1, 3}
print(set(range(1, 5))-(row | column | box))
Your task

Solve a valid 4x4 Sudoku using digits 1 through 4, zeros as blanks, and 2x2 boxes. Return a solved new matrix or None if unsatisfiable. For multiple solutions choose the first from row-major blanks and ascending digits.