mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
parent
12431389e3
commit
28f1e68f00
|
@ -1,4 +1,4 @@
|
|||
def stooge_sort(arr):
|
||||
def stooge_sort(arr: list[int]) -> list[int]:
|
||||
"""
|
||||
Examples:
|
||||
>>> stooge_sort([18.1, 0, -7.1, -1, 2, 2])
|
||||
|
@ -11,7 +11,7 @@ def stooge_sort(arr):
|
|||
return arr
|
||||
|
||||
|
||||
def stooge(arr, i, h):
|
||||
def stooge(arr: list[int], i: int, h: int) -> None:
|
||||
if i >= h:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user