mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38:39 +00:00
Merge branch 'master' of git://github.com/0xYasser/Python into 0xYasser-master
This commit is contained in:
commit
d34b07239f
@ -40,7 +40,7 @@ class Heap:
|
||||
def buildHeap(self,a):
|
||||
self.currsize = len(a)
|
||||
self.h = list(a)
|
||||
for i in range(self.currsize/2,-1,-1):
|
||||
for i in range(self.currsize//2,-1,-1):
|
||||
self.maxHeapify(i)
|
||||
|
||||
def getMax(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user