Skip to content

Commit fff2fb7

Browse files
authored
Update sorts/comb_sort.py
1 parent 8b9fbab commit fff2fb7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎sorts/comb_sort.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def comb_sort[T: Comparable](data: list[T]) -> list[T]:
4040
[0, 1, 2, 3, 4, 5, 6]
4141
>>> comb_sort(["c", "a", "b"])
4242
['a', 'b', 'c']
43-
>>> comb_sort([2.5, -1.0, 0.0])
43+
>>> comb_sort("cab")
44+
['a', 'b', 'c']
45+
>>> comb_sort([2.5, -1, 0.0])
4446
[-1.0, 0.0, 2.5]
4547
>>> comb_sort([1, "a"])
4648
Traceback (most recent call last):

0 commit comments

Comments
 (0)