Sudoku SolverHard

array hash table backtracking matrix

Fill the empty cells of a 9×9 grid so every row, column and 3×3 box holds the digits 1–9 exactly once. We do it by backtracking: pick an empty cell, try a valid digit, recurse — and undo the moment a choice leads to a dead end.

Press play to watch the algorithm run.
Metrics
Legend
How it works
0 / 0