Original Post
How to determine tree depth when using a stack, instead of recursively traversing a tree?
I need to keep track of it.
Does the depth need to be saved in the stack? Something that I want to avoid.
// just an example of how I keep track of tree depth using recursive functions
void
Recursive_Depth(TREE_NODE *node, INT depth ) {
Recursive_Depth( node, (depth+1) );
}