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 ‘.’.

Screen Shot 2016-03-28 at 12.38.56 AM.png

Note:
A valid Sudoku board (partially filled) is not necessarily solvable. Only the filled cells need to be validated.

The rule of Sudoku:  
1. Each row must have number 1-9 occurring only once;
2. Each col must have number 1-9 occurring only once;
3. The number 1-9 must occur just once in each of the sub-boxes. 

(Updating...)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s