Challenge - Try to develop your sudoku solver | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Challenge - Try to develop your sudoku solver

Taking a list 9x9 which represents a sudoku, with the empty cells represente by 0s, try to apply algorithms to resolve the puzzle returning a list 9x9 with the solution. Optional: Create a function to check if the converged solution is correct checking that there is not repeated numbers in any row,colum or 3x3 square. Here my solution: https://code.sololearn.com/cCP7rxsyCWqV/#py

24th Jan 2018, 5:42 PM
Alfred Català
3 Answers
+ 1
https://code.sololearn.com/cNFgfXZ8z43N/?ref=app
24th Jan 2018, 8:01 PM
VcC
VcC - avatar
+ 1
That's a good iterating solution, maybe a good one no to spend a lot of time coding hard level sudoku logic. Thanks!
24th Jan 2018, 8:33 PM
Alfred Català
0
it is quite efficient. Test the number of loops against other methods...
24th Jan 2018, 9:06 PM
VcC
VcC - avatar