Sudoku Solver

00:00
HardRecursionBacktracking
AmazonGoogleMicrosoft

Solve a 9×9 Sudoku puzzle in-place. Each digit 1-9 must appear exactly once per row, column, and 3×3 box.

Examples

Input → Standard sudoku puzzle
Output → solved board
Input → Already solved
Output → return as-is
Input → Minimal clues puzzle
Output → unique solution