Sudoku Solver

Fill a 9×9 grid following Sudoku rules.

Problem: Fill empty cells so each row, column, and 3×33 \times 3 box has digits 11-99 exactly once.

Approach: For each empty cell, try digits 11-99. Check validity (no duplicate in row, column, box). If valid, place and recurse. Backtrack if no digit works.

Time: O(9empty)O(9^{empty}) worst case, constraints prune heavily.

Space: O(empty)O(empty) for recursion.

See the implementation unit for code.