Thursday, February 4, 2016

LeetCode Q36: Valid Sudoku

Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
The Sudoku board could be partially filled, where empty cells are filled with the character '.'.
A partially filled sudoku which is valid.
Note:
A valid Sudoku board (partially filled) is not necessarily solvable. Only the filled cells need to be validated.

Use array to mark the access of elements in board. For each element in board, check three arrays in the same time.

No comments:

Post a Comment