BinTreeNode

This commit is contained in:
Oliver Hofmann 2025-04-15 14:01:12 +02:00
parent abcfc7ab1b
commit ae2dfab51d

View 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)