Binary Tree Node class

PHOTO EMBED

Mon Apr 19 2021 22:52:48 GMT+0000 (Coordinated Universal Time)

Saved by @hypercube #python

class Node:
  def __init__(self, value):
    self.key = value     # the key of the node
    self.parent = None   # the pointer to the parent node
    self.left = None     # the pointer to the left child node
    self.right = None    # the pointer to the right child node
content_copyCOPY

https://myatmo.medium.com/basic-understanding-of-binary-tree-e60d81014a7d