Skip to content

Commit 301b96a

Browse files
style: remove unnecessary blank lines from heap sort
1 parent 90479cf commit 301b96a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

sorts/heap_sort.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,11 @@ def heap_sort[T: Comparable](unsorted: list[T]) -> list[T]:
6464
TypeError: ...
6565
"""
6666
n = len(unsorted)
67-
6867
for i in range(n // 2 - 1, -1, -1):
6968
heapify(unsorted, i, n)
70-
7169
for i in range(n - 1, 0, -1):
7270
unsorted[0], unsorted[i] = unsorted[i], unsorted[0]
7371
heapify(unsorted, 0, i)
74-
7572
return unsorted
7673

7774

0 commit comments

Comments
 (0)