-
Notifications
You must be signed in to change notification settings - Fork 624
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
Added the sudoku_solver problem in C++ #735
Conversation
Hey, plz do not create multiple issues for same pr. I have changed the the title of that issue itself :) |
Maam, I created this PR for the Sudoku solver issue and I have also attached this PR to the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plz link yr file to the resp. folder.
Code/C++/sudoku_solver.cpp
Outdated
return false; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra line
Code/C++/sudoku_solver.cpp
Outdated
|
||
//solving the sudoku by calling the helper method. | ||
sudoku_solver(sudoku, 0, 0); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line
Code/C++/sudoku_solver.cpp
Outdated
|
||
|
||
/* | ||
Time Complexity of the approach : O(9 ^ (N * N)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add time complexity at the end.
I made the changes to the code and linked the code to the folder. |
Algorithm/Backtracking/readme.md
Outdated
@@ -28,3 +28,5 @@ unsolvable. | |||
## Questions : | |||
|
|||
* Permutation of a string ----> [C++](/Code/C++/permutation_of_a_string.cpp) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the change
|
||
/* | ||
Time Complexity of the approach : O(9 ^ (N * N)) | ||
Space Complexity of the approach : O(N * N) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify n here
Also, plz resolve merge conflicts! |
@raksha009 @rudrakshi99 I have made the change and resolved the merge conflict. Please review the changes I made. |
Added the Sudoku solver problem in C++ along with an explanation of the code, proper comments and sample input outputs.
Issue related to this PR #42