File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ def merge(left: list, right: list) -> list:
38
38
"""
39
39
result = []
40
40
left_index = right_index = 0
41
- length_left , length_right = len (left ) , len (right )
42
-
41
+ length_left , length_right = len (left ), len (right )
42
+
43
43
while (left_index < length_left ) and (right_index < length_right ):
44
44
if left [left_index ] < right [right_index ]:
45
45
result .append (left [left_index ])
@@ -48,8 +48,8 @@ def merge(left: list, right: list) -> list:
48
48
result .append (right [right_index ])
49
49
right_index += 1
50
50
51
- result .extend (left [left_index : ])
52
- result .extend (right [right_index : ])
51
+ result .extend (left [left_index :])
52
+ result .extend (right [right_index :])
53
53
return result
54
54
55
55
if len (collection ) <= 1 :
You can’t perform that action at this time.
0 commit comments