merge
This commit is contained in:
commit
f7f8972a59
|
@ -320,7 +320,7 @@ def _siftdown_max(heap, startpos, pos):
|
||||||
heap[pos] = newitem
|
heap[pos] = newitem
|
||||||
|
|
||||||
def _siftup_max(heap, pos):
|
def _siftup_max(heap, pos):
|
||||||
'Minheap variant of _siftup'
|
'Maxheap variant of _siftup'
|
||||||
endpos = len(heap)
|
endpos = len(heap)
|
||||||
startpos = pos
|
startpos = pos
|
||||||
newitem = heap[pos]
|
newitem = heap[pos]
|
||||||
|
|
Loading…
Reference in New Issue