forked from hofmannol/AlgoDatSoSe25
BinTreeNode
This commit is contained in:
parent
abcfc7ab1b
commit
ae2dfab51d
15
praktika/04_bin_baum/bin_tree_node.py
Normal file
15
praktika/04_bin_baum/bin_tree_node.py
Normal file
@ -0,0 +1,15 @@
|
||||
from utils.memory_cell import MemoryCell
|
||||
|
||||
class BinaryTreeNode(MemoryCell):
|
||||
|
||||
def __init__(self, value):
|
||||
super().__init__(value)
|
||||
self.left = None
|
||||
self.right = None
|
||||
|
||||
def __repr__(self):
|
||||
return f"BinaryTreeNode(value={self.value}, left={self.left}, right={self.right})"
|
||||
|
||||
def __str__(self):
|
||||
return str(self.value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user