Merge branch 'master' of git://github.com/0xYasser/Python into 0xYasser-master

This commit is contained in:
Harshil 2018-11-10 19:04:11 +01:00
commit d34b07239f

View File

@ -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):