Question: Write a function issudoku ( m ) that takes a numerical matrix and returns true if the board is a valid 4 x 4 Sudoku

Write a function issudoku(m) that takes a numerical matrix and returns true if the board is a valid 4x4 Sudoku solution and false otherwise. The figure shows an example of a valid board. For a board to be valid, it must satisfy the following conditions: The numbers on the board should only be one of 1,2,3,4. A number should not be repeated on a row or column of the board or within any of the four 2x2 sub-blocks shown in the figure. Return false if the input matrix is not a 4x4 matrix.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!