How can we know the binary tree interface? Or what methods does TreeNode have?
For instance, if t is an object/instance of TreeNode, and we want to check if t is root, then which version below is correct?
and how to access value of t?
which one is correct?