Binary tree with parent prototype missing from solutions page

#1

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!

0 Likes

#2

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

#3

Hi, @tsunghsienlee
Thank you so much!
I was expecting something more complicated than that… I feel silly now. :sweat_smile:

0 Likes

#4

Few days ago, I was also looking for the implementation of BinaryTreeNode.

I also expected it to be more complicated. Hahaha

0 Likes