We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678dedb commit aa3131bCopy full SHA for aa3131b
sorts/circle_sort.py
@@ -9,7 +9,7 @@
9
"""
10
11
12
-def circle_sort(collection: list) -> list:
+def circle_sort(collection: list[int]) -> list[int]:
13
"""A pure Python implementation of circle sort algorithm
14
15
:param collection: a mutable collection of comparable items in any order
@@ -30,7 +30,7 @@ def circle_sort(collection: list) -> list:
30
if len(collection) < 2:
31
return collection
32
33
- def circle_sort_util(collection: list, low: int, high: int) -> bool:
+ def circle_sort_util(collection: list[int], low: int, high: int) -> bool:
34
35
>>> arr = [5,4,3,2,1]
36
>>> circle_sort_util(lst, 0, 2)
0 commit comments