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? |
cclauss
left a comment
There was a problem hiding this comment.
Nice!! Thanks for doing this.
Describe your change:
Checklist: