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 983c289 commit 7c4cc3aCopy full SHA for 7c4cc3a
1 file changed
sorts/bozo_sort.py
@@ -27,8 +27,8 @@ def bozo_sort(array: list) -> list:
27
>>> bozo_sort([8, 16, 0, 4, 10])
28
[0, 4, 8, 10, 16]
29
"""
30
-
31
- def is_sorted(array):
+
+ def is_sorted(array: list) -> bool:
32
for i, n in enumerate(array):
33
if i < len(array) - 1 and n > array[i + 1]:
34
return False
0 commit comments