Uh oh!
There was an error while loading. Please reload this page.
Adding stooge sort - #1206
Conversation
cclauss
commented
Sep 26, 2019
The failing Travis CI builds are not caused by this PR but are instead caused by my mistake in #1205. |
Uh oh!
There was an error while loading. Please reload this page.
cclauss
commented
Sep 26, 2019
While waiting, you should be able to test this locally with python3 -m doctest -v sorts/stooge_sort.py |
Charitoc
commented
Sep 26, 2019
It is ready, could you do the review? |
cclauss
left a comment
There was a problem hiding this comment.
Awesome work! Thanks for your patience with the broken build and thanks for your contribution.
Charitoc
commented
Sep 26, 2019
Thank you! |
On thing to think about in the future is the difference between list.sort() and sorted(list) in Python. The first is an in-place sort (like this stooge_sort()) while the second returns a new sorted list without modifying the original list. Both are useful but I tend to like the second better. |
Charitoc
commented
Sep 26, 2019
Ok, thank you for your time. |
* Adding stooge sort * Updated doctest * Just added underscore in the name
No description provided.