employer cover photo
employer logo
employer logo

National Instruments

Is this your company?

National Instruments Interview Question

How to calculate average of a binary tree?

Interview Answer

Anonymous

Mar 1, 2016

I did a pre-order traversal and sum up all elements in tree nodes and count how many nodes in total. Then calculate the result.

1