BST

I was wondering if there was any way to travel from a leaf to the root. For example I search the tree to find the leaf i want and then trace/record the path back to the root
Save a pointer to parent in each node in addition to child pointers.
Last edited on
cool! thank you :)
Topic archived. No new replies allowed.