diff --git a/data_structures/heap/heap.py b/data_structures/heap/heap.py index d0c2400eb..8187af101 100644 --- a/data_structures/heap/heap.py +++ b/data_structures/heap/heap.py @@ -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):