-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
[fix/docs]: Update backtracking folder #916
[fix/docs]: Update backtracking folder #916
Conversation
Too many files and a lot of corrections will come. |
aea386e
to
ea66bc1
Compare
Done, only updated |
excellent. I see good update.
add_subdirectory(backtracking) Done. Commit and push. We will ensure the compilation works well. |
Done. |
now starts your bug-fixing process 😏 |
As an active contributor, request to you: |
This pull request introduces 1 alert when merging 6db5bfa into eddda4e - view on LGTM.com new alerts:
|
I didn't figured out how to compile it there. The results are: Following are the assigned colors
1232
Following are the assigned colors
1323
Following are the assigned colors
2131
Following are the assigned colors
2313
Following are the assigned colors
3121
Following are the assigned colors
3212 Is that correct? I got a bit confused. |
Issues should be solved now, thanks! 🙂 |
This pull request introduces 1 alert when merging 5138881 into f87bc25 - view on LGTM.com new alerts:
|
please remove global variables. Pass variables as function arguments or better, organize them as private members of a class |
5138881
to
8ffbbb3
Compare
please avoid force-push. |
Note: This is identical to passing it as a function parameter, and may not be helpful
make the code neat and clean without global variables
Looks much better. Now, check and fix the documentations for function parameters in kignt's tour program. |
Updated. Please review the file. |
backtracking/sudoku_solve.cpp
Outdated
* | ||
* @details | ||
* Sudoku (数独, sūdoku, digit-single) (/suːˈdoʊkuː/, /-ˈdɒk-/, /sə-/, originally called | ||
* Number Place)[1] is a logic-based,[2][3] combinatorial[4] number-placement puzzle. |
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.
There are many sudoku solving algorithms. Which method is this?
I think it is the brute-force method.
The wikipedia copy paste is unnecessary here - and is called plagiarism if not cited properly.
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.
Good point; what kind of description shall we add here?
Please check the other files for similar issues. |
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.
- review my comment above: [fix/docs]: Update backtracking folder #916 (comment)
- some of the function documentations in sudoku solver are still stubs.
168e7cf
to
bf3e0e4
Compare
* @param mat matrix where numbers are saved | ||
* @param i current index in rows | ||
* @param j current index in columns | ||
* @param no number to be added in matrix |
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.
I think this is the only thing that is missing good documentation.
* @param no number to be added in matrix
Is there anything else that needs to be changed/fixed?
@kvedala all seems to be fine to me (except the review comment above). |
File taken and modified from https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/backtracking/minimax.cpp. I improved that algorithm previously (see TheAlgorithms/C-Plus-Plus#916).
Description of Change
backtracking
folder to CMake build-chainbacktracking
folder with refined code and documentationChecklist
Notes: Didn't split commits. If requested, I can split, but will take more time.