Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Check initial grid availability for backtracking/sudoku.py #3849
Conversation
|
??? |


Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}.In the previous code, if you change 9 at the fifth line to 5, the program will give you a solution. But the output does not conform to the definition of sudoku. It means the program is not checking the input at all. So I add some validation of the input, specifying the grid to be 9*9 2D-list of 0-9.