Skip to content

Commit ff133d6

Browse files
Refine Shell Sort implementation and documentation
1 parent 48b9a8c commit ff133d6

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

sorts/shell_sort.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,4 @@ def shell_sort(collection: list[int]) -> list[int]:
3131

3232
collection[j] = insert_value
3333

34-
return collection
35-
36-
37-
if __name__ == "__main__":
38-
from doctest import testmod
39-
40-
testmod()
41-
user_input = input("Enter numbers separated by a comma:\n").strip()
42-
unsorted = [int(item) for item in user_input.split(",")]
43-
print(shell_sort(unsorted))
34+
return collection

0 commit comments

Comments
 (0)