Valid Sudoku

We use boolean arrays as little checklists to track numbers in each row, column, and box. This follows a validation pattern—as we scan the board, we just mark numbers as “seen” so we can catch duplicates right away.