Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Sorting/HeapSort.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ def heapify(arr, n, i):

# See if right child of root exists and is
# greater than root

if r < n and arr[largest] < arr[r]:
largest = r
remove()

# Change root, if needed

Expand Down