mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +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…
Reference in New Issue
Block a user