AK.
← All projects
04 · ALGORITHMS
Python

Sudoku Solver

A recursive solver that finds valid Sudoku solutions through backtracking.

THE ALGORITHM

Checks rows, columns and 3×3 boxes, tries a candidate, and backtracks when that choice leads to a dead end.

LOGIC IN PRACTICEConstraints into solutions

The original Python program accepts a grid with zeroes for empty cells and prints a solution when one exists.