MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / __init__

Method __init__

data_structures/heap/heap.py:12–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10#This heap class start from here.
11class Heap:
12 def __init__(self): #Default constructor of heap class.
13 self.h = []
14 self.currsize = 0
15
16 def leftChild(self,i):
17 if 2*i+1 < self.currsize:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected