Find the average value of a binary tree of intergers
Anonymous
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
Check out your Company Bowl for anonymous work chats.