AlgoMaster Logo

Average of Levels in Binary Tree

tree=[3, 9, 20, null, null, 15, 7]
0 / 17
3920157L0L1L2queueresultlevel-order traversal (BFS)
algomaster.io
Step:Start: compute the average of each level with BFS