-
-
Notifications
You must be signed in to change notification settings - Fork 46.5k
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
code enhancement in sort.double_sort
#10798
Conversation
* Don't need to return list as list is mutable * use advantage of python in swapping * filter blank inputs from input list * minor changes
for more information, see https://pre-commit.ci
It would help me if you could add label |
Let's change line 1 to a commitment to return a tuple: def double_sort(unsorted: list) -> tuple: Let's change the vague name |
No label until the tests pass and it is merged. ;-) As discussed in
|
All tests are passed on my computer. |
The functions returns |
for more information, see https://pre-commit.ci
sort.double_sort
@cclauss, could you review now please? |
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.
Nice!! Thanks for doing this.
* don't need to return list because list is mutable * Don't need to return list as list is mutable * use advantage of python in swapping * filter blank inputs from input list * minor changes * minor mistake * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * more readable * Update double_sort.py * last fixes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
Describe your change:
Checklist: