Pergunta de entrevista da empresa National Instruments

Find the average value of a binary tree of intergers

Resposta da entrevista

Sigiloso

2 de abr. de 2013

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