Add url and typing hint for BFS#2156
Add url and typing hint for BFS#2156cclauss merged 13 commits intoTheAlgorithms:masterfrom asukaminato0721:master
Conversation
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 199a2480-b6f0-11ea-bb0d-6965ce86ea0c |
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: a5cfeeb0-b6f2-11ea-bb0d-6965ce86ea0c |
asukaminato0721
left a comment
There was a problem hiding this comment.
Fix several hidden troubles.
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: f9755aa0-b6f2-11ea-bb0d-6965ce86ea0c |
asukaminato0721
left a comment
There was a problem hiding this comment.
Fix the type of return value of bfs.
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 760f6510-b6f3-11ea-bb0d-6965ce86ea0c |
|
You will need to change all instances of |
change all instances of bfs() to breadth_first_search().
asukaminato0721
left a comment
There was a problem hiding this comment.
Change all instances of bfs() to breadth_first_search().
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 76d334d0-b6f4-11ea-bb0d-6965ce86ea0c |
asukaminato0721
left a comment
There was a problem hiding this comment.
Change the function name in annotate.
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: eb9c0e90-b6f4-11ea-bb0d-6965ce86ea0c |
asukaminato0721
left a comment
There was a problem hiding this comment.
Add one more blank line.
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 484d58a0-b6f6-11ea-bb0d-6965ce86ea0c |
asukaminato0721
left a comment
There was a problem hiding this comment.
Delete one blank line.
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 54857070-b6f7-11ea-bb0d-6965ce86ea0c |
I've read the https://www.flake8rules.com/rules/W391.html, and still don't know how to do it. I've tried using 0 ,1,2 blank lines...
|
Do not worry about Euler 47 |
asukaminato0721
left a comment
There was a problem hiding this comment.
Delete one blank line.
Confused with this https://www.flake8rules.com/rules/W391.html
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 1ffbf7a0-b6f9-11ea-bb0d-6965ce86ea0c |
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: a51fad50-b6f9-11ea-bb0d-6965ce86ea0c |
|
We already have a breadth_first_search.py. Should this file be deleted?? |
|
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 4ac8aa20-b6fc-11ea-bb0d-6965ce86ea0c |
* Add typing for bfs * Add url for BFS * rename the function Co-authored-by: Christian Clauss <cclauss@me.com> * Update graphs/bfs.py Co-authored-by: Christian Clauss <cclauss@me.com> * Change the return value type of bfs * change the function name. change all instances of bfs() to breadth_first_search(). * change the function name in annotate * Add one more blank line. * Delete one blank line. * Delete one blank line. I've read the https://www.flake8rules.com/rules/W391.html, and still don't know how to do it. I've tried using 0 ,1,2 blank lines... * Update graphs/bfs.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update graphs/bfs.py Co-authored-by: Christian Clauss <cclauss@me.com> * Rename bfs.py to breadth_first_search_2.py Co-authored-by: Christian Clauss <cclauss@me.com>
Describe your change:
Add typing for bfs and make the code more brief.
Checklist:
Fixes: #{$ISSUE_NO}.