Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 96f74b1

Browse files
committedOct 11, 2024·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 367307d commit 96f74b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎sorts/stalin_sort.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Elements that are not greater than or equal to the previous element are discarded.
44
Reference: https://medium.com/@kaweendra/the-ultimate-sorting-algorithm-6513d6968420
55
"""
6+
7+
68
def stalin_sort(sequence: list[int]) -> list[int]:
79
"""
810
Sorts a list using the Stalin sort algorithm.
@@ -44,4 +46,5 @@ def stalin_sort(sequence: list[int]) -> list[int]:
4446

4547
if __name__ == "__main__":
4648
import doctest
49+
4750
doctest.testmod()

0 commit comments

Comments
 (0)
Please sign in to comment.