Skip to content

Commit dac54c2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4fdae9e commit dac54c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

heap.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def delete_max(self):
4343
self.heapify_down(0)
4444
return deleted_item
4545

46+
4647
def heap_sort(arr):
4748
heap = MaxHeap()
4849

@@ -56,8 +57,9 @@ def heap_sort(arr):
5657

5758
return arr
5859

60+
5961
arr = [4, 10, 3, 5, 1]
6062
arr = heap_sort(arr)
6163

6264
# Displaying sorted array
63-
print("Sorted array:", arr)
65+
print("Sorted array:", arr)

0 commit comments

Comments
 (0)