There was an error while loading. Please reload this page.
1 parent 469f44f commit 16eb956Copy full SHA for 16eb956
1 file changed
sorts/adaptive_merge_sort.py
@@ -11,8 +11,8 @@ def adaptive_merge_sort[T: Comparable](sequence: list[T]) -> list[T]:
11
12
>>> adaptive_merge_sort([4, 3, 1, 2])
13
[1, 2, 3, 4]
14
- >>> adaptive_merge_sort(["banana", "apple", "cherry"])
15
- ["apple", "banana", "cherry"]
+ >>> adaptive_merge_sort(["banana", "apple", "cherry"])
+ ['apple', 'banana', 'cherry']
16
>>> adaptive_merge_sort([1, "apple"])
17
Traceback (most recent call last):
18
TypeError: '<' not supported between instances of 'str' and 'int'
0 commit comments