-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Add merge insertion sort #2211
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
Add merge insertion sort #2211
Conversation
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 the wikipedia url in the file as a comment or in the docstring
@ruppysuppy
fixed here |
Co-authored-by: Christian Clauss <[email protected]>
…tion Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
@cclauss |
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.
Thank you for your pull request!🤩 Looks good to me. A minor suggestion would be substituting single
or odd
or something else for surplus
(❗ : comments are encouraged too, considering that there aren't many resources on this algorithm).
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.
LGTM
Hey @Ryuta69, TravisCI finished with status TravisBuddy Request Identifier: a02fb0a0-c92e-11ea-ac34-c150448e8ecf |
* Add merge insertion sort * Fix python naming conventions * Add wikipedia link * Add type hint * Fix python to python3 Co-authored-by: Christian Clauss <[email protected]> * Refactor doubled process in if-condition into one outside of if-condition Co-authored-by: Christian Clauss <[email protected]> * Refactor make python3 prior to python Co-authored-by: Christian Clauss <[email protected]> * Fix name of is_surplus into has_last_odd_item * Add comment * Fix long comment to shorten Co-authored-by: Christian Clauss <[email protected]>
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.Wikipedia URL
https://en.wikipedia.org/wiki/Merge-insertion_sort
I did black and flake 8 process.