Ishan7390 / Sudoku-Solver

An Application of Backtracking in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sudoku-Solver

An Application of Backtracking in Python

Logic

Basically, the algorithm puts in a number and checks if it is valid for the row, column, and the smaller 3 * 3 box, and moves on to the next empty box. When it comes across a situation when it cannot put a valid num, it BACKTRACKS to previous filled spot and tries to look for another number. It's way better than the Brute force approach.

Try It Out in Gitpod

Open in Gitpod

Additional Resources

I used this video to understand about backtracking. Huge thanks to Tim @ Tech with tim for the wonderful explaination.

About

An Application of Backtracking in Python


Languages

Language:Python 100.0%