02 Apr PMCA Sunday 12:00 Java Homework 20.03.29.
Question:
Continue with the code we did in the class and try to solve a mini sudoku. The rules of the mini sudoku are as below
- No two same numbers can be in the same row and column
- Only numbers 1,2,3,4 are allowed
- Each row and column should all numbers 1,2,3,4
(dash means empty cell)
Input
| 1 | - | 3 | - | 
| - | - | 2 | 1 | 
| 0 | 1 | - | 2 | 
| 2 | 4 | - | - | 
Output
| 1 | 2 | 3 | 4 | 
| 4 | 3 | 2 | 1 | 
| 3 | 1 | 4 | 2 | 
| 2 | 4 | 1 | 3 | 
 
									 
									
Sorry, the comment form is closed at this time.