This content has been marked as final. Show 4 replies
the inorder value of the nodeAre you reffering to the # of the node in the tree in your traversal? Or the actual value in the Node, like to be printed from a toString() method?
the actual # of the node in the traversal. I have another method that can return the value stored inside the node.
You will need an instance variable that keeps track of which node you are up to.
Is that an instance variable that keeps track of my relative position in the tree? im a little confused as to why you would need one as if i want to know where i am i can just look at my "root" for the particular sub tree i happen to be at. Unless you mean which node in the traversal i am up to. Then i can only increment when i get to a node i haven't gotten to yet i suppose. Sorry im being so dense with this. :P