Skip to content

Commit 3f6da37

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 224a826 commit 3f6da37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sorts/tim_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def insertion_sort(lst):
1919
for index in range(1, length):
2020
value = lst[index]
2121
pos = binary_search(lst, value, 0, index - 1)
22-
lst = [*lst[:pos], value, *lst[pos:index], *lst[index + 1:]]
22+
lst = [*lst[:pos], value, *lst[pos:index], *lst[index + 1 :]]
2323

2424
return lst
2525

0 commit comments

Comments
 (0)