mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00

committed by
GitHub

parent
28f1e68f00
commit
a7133eca13
@ -3,7 +3,7 @@ https://en.wikipedia.org/wiki/Shellsort#Pseudocode
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def shell_sort(collection):
|
def shell_sort(collection: list[int]) -> list[int]:
|
||||||
"""Pure implementation of shell sort algorithm in Python
|
"""Pure implementation of shell sort algorithm in Python
|
||||||
:param collection: Some mutable ordered collection with heterogeneous
|
:param collection: Some mutable ordered collection with heterogeneous
|
||||||
comparable items inside
|
comparable items inside
|
||||||
|
Reference in New Issue
Block a user