There was an error while loading. Please reload this page.
1 parent 8b9fbab commit fff2fb7Copy full SHA for fff2fb7
1 file changed
sorts/comb_sort.py
@@ -40,7 +40,9 @@ def comb_sort[T: Comparable](data: list[T]) -> list[T]:
40
[0, 1, 2, 3, 4, 5, 6]
41
>>> comb_sort(["c", "a", "b"])
42
['a', 'b', 'c']
43
- >>> comb_sort([2.5, -1.0, 0.0])
+ >>> comb_sort("cab")
44
+ ['a', 'b', 'c']
45
+ >>> comb_sort([2.5, -1, 0.0])
46
[-1.0, 0.0, 2.5]
47
>>> comb_sort([1, "a"])
48
Traceback (most recent call last):
0 commit comments