Educative

Why minHeapify() called with all elements of Heap ? Is it same as calling minHeapify() with only parent nodes in Heap?

def buildHeap(self, arr):
self.heap = arr
for i in range(len(arr)-1, -1, -1):
self.__minHeapify(i)

index_of _parent = ((len(arr)-1)-1)//2 # parent_index = floor((last_index - 1)/2)