Average of Levels in Binary Tree
Return the average value of nodes on each level in the binary tree. For an empty tree, return an empty array. The average for a level is its node-value sum divided by its node count.
Return the average value of nodes on each level in the binary tree. For an empty tree, return an empty array. The average for a level is its node-value sum divided by its node count.