Find the average value of a binary tree of intergers
Sigiloso
I just did a recursive descent down the tree. The trick is to keep track of sum and count. Be careful of memory leaks if you use arrays. Structs and output parameters make for good solutions