I'm trying to write something to determine the largest depth of a binary tree but far have only ended up with one thing that keep giving back the number of nodes in the tree, and another, below, that is always one more or less off. After hours of trying to adjust this I could really use some advice..
do any of the recursive tree traversals that touch every node, and you count as you go down nodes, stop counting when you hit null children, ... you need a max of those depths, to find the deepest one, and the current depth, to track it as you go.
@mbozzi: That's what I would have normally done but its a one piece of a large assignment that says I have to have those two int* arguments to the function, and I'm just lost as to incorporating them correctly. We have TAs to ask but communication there isn't the best and so far they've only gotten me more confused.