Skip to content

Add my contribution or filesfeat: add Sudoku solver using recursive backtracking algorithm - #1275

Open
suravisehgal wants to merge 1 commit into
digitalocean:mainfrom
suravisehgal:suravi_octoberfest
Open

suravisehgal wants to merge 1 commit into
digitalocean:mainfrom
suravisehgal:suravi_octoberfest

Conversation

@suravisehgal

Copy link
Copy Markdown

Hacktoberfest Contribution: 9x9 Sudoku Solver
Contributed by: @suravisehgal

Overview & Changes:
New File: Added sudoku_solver.py implementing a standalone 9x9 Sudoku solver via recursive backtracking.

Interactive CLI:
Features 3 modes: solving a benchmark puzzle, automated self-tests, and custom 9x9 user inputs.

ASCII Visualization:
Clean terminal grid display with clear 3x3 subgrid boundaries.

Why Add This?:
Fills a gap in the repository by adding an educational example of backtracking and state validation.

Verification & Quality:
Tested: Runs cleanly (python3 sudoku_solver.py) with zero errors, all self-tests pass.

Clean Code: 100% PEP 8 compliant with type annotations, beginner-friendly comments, and zero external dependencies (pure Python).

No Duplicates: Verified no similar Sudoku solver exists in the codebase.

CC @souravjain540 — Thanks for reviewing! 🙌

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant