Skip to content

Create Sudoku_solver_backtracking.py #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2020
Merged

Create Sudoku_solver_backtracking.py #251

merged 1 commit into from
Oct 24, 2020

Conversation

Mohitkumar6122
Copy link
Member

Description

Added Sudoku Solver using Backtracking
Given a partially filled 9×9 2D array, the objective is to fill a 9×9 square grid with digits numbered 1 to 9, so that every
row,column, and and each of the nine 3×3 sub-grids contains all of the digits. This can be solved using Backtracking and is
similar to n-queens. We check to see if a cell is safe or not and recursively call the function on the next column to see if it
returns True. if yes, we have solved the puzzle. else, we backtrack and place another number in that cell and repeat this
proces

Make sure you have:

  • Visited http://join.codezoned.com/
  • Starred ScriptsDump!
  • Referred the issue number in the fixes title below.
  • Made a PR in Join_codezoned.
  • Joined our discord server.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • New Script
  • New Category (Is any new category being made to accommodate this script)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Copy link
Member

@master-fury master-fury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome Work!!

@master-fury master-fury merged commit 5457bfe into codezoned:master Oct 24, 2020
@Mohitkumar6122 Mohitkumar6122 deleted the patch-3 branch October 25, 2020 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants