Skip to content

Added sleep-sort #1867

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

Merged
merged 6 commits into from
May 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update sorts/sleepsort.py
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
poyea and cclauss authored May 7, 2020
commit 70c95f2f2ac0344fdc980bd88981f05da1c1525c
2 changes: 1 addition & 1 deletion sorts/sleepsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def append_to_result(x):

if __name__ == '__main__':
import doctest
doctest.testmod
doctest.testmod()
x = [3, 2, 4, 7, 3, 6, 9, 1]
sorted_x = sleepsort(x)
print(sorted_x)