Skip to content
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

Sudokusolver #159

Closed
wants to merge 2 commits into from
Closed

Sudokusolver #159

wants to merge 2 commits into from

Conversation

smitp00
Copy link

@smitp00 smitp00 commented Jan 30, 2024

Completed the sudoku solver with functions:

SolveSudoku: Primary function that is called to solve the Sudoku puzzle. It takes a 9x9 grid as input and returns the solved grid.

solveSudoku: Helper function used by SolveSudoku. It implements the actual solving logic, using a backtracking algorithm. It is a recursive function that tries to fill the grid and backtracks when it encounters an unsolvable situation.

isSafe: This function checks whether it's safe to place a specific number in a given cell. It ensures that the same number is not already present in the same row, column, or 3x3 subgrid.

@smitp00 smitp00 closed this by deleting the head repository Jun 25, 2024
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