Coding

Determine if a Sudoku board is valid.

Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to standard Sudoku rules: each row, column, and 3x3 sub-box must contain the digits 1-9 without repetition.

Input: board = 9x9 grid where the first row contains 7 twice

Output: FALSE

Explanation: A valid Sudoku cannot contain duplicate numbers in the same row, immediately invalidating the board.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

Community Answers

1 answer from the community

Expert Answer

Unlock Full Access

Answer any un-answered question from our database to unlock all community answers for 30 days.

Give & Take

Practice More Questions

1 answer published. Last candidate submission on Nov 1 2026, 12:39pm PDT. Interview question asked to Software Engineers interviewing at GEICO, Scribd, Taiwan Semiconductor and other companies. Original question asked: Determine if a Sudoku board is valid.. Question last reported by a candidate interviewing at Xerox for a Software Engineer interview on Nov 19 2026, 5:57am PDT.