From 840aa6209b674a00dce1ea90734e98a7d3e4e7fe Mon Sep 17 00:00:00 2001 From: Yasser A Date: Tue, 6 Nov 2018 17:19:51 -0500 Subject: [PATCH] fix division by float issue in range heap.py --- data_structures/heap/heap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):