fix division by float issue in range heap.py

This commit is contained in:
Yasser A 2018-11-06 17:19:51 -05:00
parent 8a667e8b22
commit 840aa6209b

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