# Sudoku Solver: Explained
Sudoku Solver shows up often in coding rounds. Here is how I talk through it when the interviewer is watching.
## Key idea
DFS empty cells, try 1-9, and skip any digit already used in the row, column, or 3x3 box (bitmasks make the check O(1)). Recurse and backtrack on contradiction.
## Steps to say out loud
1. Restate the input and the exact ask, and nail down constraints and overflow.
2. Name the pattern (bitmasks, backtracking with pruning, or interval DP) and why a simpler scan fails.
3. Code it, then trace a short example plus one empty or already-solved edge case.
## Complexity
O(9^m) pruned.
## Common mistake
Filling left to right without the box constraint, which yields invalid boards.
## Practice tip
Time yourself: two minutes to explain, ten to code, three to test edges. Disclosure: I work on Linkjob AI. I also keep a practice cheat sheet at AI job search and interview copilot.