Question: use python pls. def buildHeap (self,alist): i = len(alist) // 2 self.currentSize- len(alist) self.heapList = [0] + alist[.] while Ci > 0): self.percDown(i) i -i

use python pls.
def buildHeap (self,alist): i = len(alist) // 2 self.currentSize- len(alist) self.heapList = [0] + alist[.] while Ci > 0): self.percDown(i) i -i 1 9 2 2 6 Initial Heap
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
