0637. Average of Levels in Binary Tree
Last updated
Last updated
https://leetcode.com/problems/average-of-levels-in-binary-tree
Given the root
of a binary tree, return the average value of the nodes on each level in the form of an array. Answers within 10-5
of the actual answer will be accepted. Example 1:
Example 2:
Constraints:
The number of nodes in the tree is in the range [1, 104]
.
-231 <= Node.val <= 231 - 1