Some of your solutions have
from binary_tree_with_parent_prototype import BinaryTreeNode
but I couldn’t find it in the solutions page. Any help is appreciated.
Thanks!
Binary tree with parent prototype missing from solutions page
fiscoding
#1
0 Likes
Hi @fiscoding,
Sorry for the missing files, and the prototype is listed as follows:
class BinaryTreeNode:
def __init__(self, data=None, left=None, right=None, parent=None):
self.data = data
self.left = left
self.right = right
self.parent = parent
0 Likes
fiscoding
#3
Hi, @tsunghsienlee
Thank you so much!
I was expecting something more complicated than that… I feel silly now.
0 Likes
algofever
#4
Few days ago, I was also looking for the implementation of BinaryTreeNode.
I also expected it to be more complicated. Hahaha
0 Likes