Skip to content

Indra dev #5699

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

Closed
wants to merge 9 commits into from
Closed

Indra dev #5699

wants to merge 9 commits into from

Conversation

captiosus1
Copy link

  • Implemented a Sudoku solver that uses a backtracking approach to solve any valid 9x9 Sudoku puzzle.
  • Added functionality to check if placing a number in a specific cell is valid, adhering to Sudoku's row, column, and sub-grid rules.
  • Includes a method to print the solved Sudoku board.
  • Added handling for unsolvable Sudoku cases, with a clear output indicating whether the puzzle can be solved.

@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 38 lines in your changes missing coverage. Please review.

Project coverage is 62.99%. Comparing base (2338428) to head (e0730f9).

Files with missing lines Patch % Lines
...a/com/thealgorithms/backtracking/SudokuSolver.java 0.00% 38 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5699      +/-   ##
============================================
+ Coverage     62.93%   62.99%   +0.05%     
- Complexity     4044     4060      +16     
============================================
  Files           567      568       +1     
  Lines         16030    16068      +38     
  Branches       3084     3097      +13     
============================================
+ Hits          10089    10122      +33     
- Misses         5525     5529       +4     
- Partials        416      417       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@captiosus1
Copy link
Author

Hi @siriak, Kindly Check my code and do let me know if any changes are required. This is my first contribution to Open Source. Looking forward for a great experience.

Thank you

@alxkm
Copy link
Contributor

alxkm commented Oct 10, 2024

It looks like this has already been implemented.

https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/others/Sudoku.java

Fill free to add more tests there.

@captiosus1
Copy link
Author

Hi @alxkm , As you have suggested i created few test cases for the Sudoku.java Class. Please look into it, and let me know if any changes are required.

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution!

@github-actions github-actions bot added the stale label Nov 12, 2024
Copy link

Please reopen this pull request once you have made the required changes. If you need help, feel free to ask in our Discord server or ping one of the maintainers here. Thank you for your contribution!

@github-actions github-actions bot closed this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants