def __init__(self, key, left=None, right=None, parent=None):
     Node.__init__(self, key, left, right, parent)
     self.count = 1
Esempio n. 2
0
 def __init__(self, key, parent=None, left=None, right=None, height=0):
     Node.__init__(self, key=key, parent=parent, left=left, right=right)
     self.height = height