Quote (lopelurag @ Jul 10 2012 08:01pm)
I no longer need this, it was a practice exercise and I just wanted to check my answers.
i recommend using a unit test to check the validity of your code. include all the edge cases you can think of (null tree, tree with 0 nodes, append-to-root scenario, append-to-leaf, etc)