-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
N queens math #2175
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
N queens math #2175
Conversation
Hey @DavidBanda, TravisCI finished with status TravisBuddy Request Identifier: dec05400-be57-11ea-b6c3-5fc2c9c22d2c |
How is this better than https://github.com/TheAlgorithms/Python/blob/master/backtracking/n_queens.py ?
|
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Hey @DavidBanda, TravisCI finished with status TravisBuddy Request Identifier: d95c4fc0-be78-11ea-b6c3-5fc2c9c22d2c |
Hey @DavidBanda, TravisCI finished with status TravisBuddy Request Identifier: 7f03d7e0-be79-11ea-b6c3-5fc2c9c22d2c |
Hey @DavidBanda, TravisCI finished with status TravisBuddy Request Identifier: a5b11690-bfba-11ea-8212-0f9c14daf924 |
Hey @DavidBanda, TravisCI finished with status TravisBuddy Request Identifier: 13acf3c0-bfbc-11ea-8212-0f9c14daf924 |
Its not better than https://github.com/TheAlgorithms/Python/blob/master/backtracking/n_queens.py. Its just another solution to the problem of n queens. |
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.
Let's add type hints and let's have depth_first_search()
return a board (the search result) instead of passing in boards
each time.
Hey @DavidBanda, TravisCI finished with status TravisBuddy Request Identifier: ac9689d0-c08d-11ea-8f0c-c508e01afe59 |
Hey, how's it going? I added all the changes you requested except for the one that said to use |
Sorry for the delay... I will review this and land it in 24 hours. |
Don't worry about it |
Thanks! |
* add new file for another solution to the n queens problem * Add the code for the algorithm, add comments and add at the top a general explanation * Update backtracking/n_queens_math.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update backtracking/n_queens_math.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update backtracking/n_queens_math.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update backtracking/n_queens_math.py Co-authored-by: Christian Clauss <cclauss@me.com> * No newline at the end of the file * Type hints * whitespaces fixed * Fixed whitespaces * Add type hints * CodeSpell fixed * update * All changes made except changing the board variable to local * Add doctest * Update * Update * Update * Update n_queens_math.py Co-authored-by: Christian Clauss <cclauss@me.com>
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.