Binary Tree Level Order Traversal
Return the node values of a binary tree level by level from left to right.
Each inner array should contain all values from one depth of the tree, starting at the root level.
The input is a level order array: null marks a missing child, trailing null entries may be omitted, and [] represents an empty tree (a null root).
Examples
Input: []
Output: []
Input: [48,67,86,-95,-76]
Output: [[48],[67,86],[-95,-76]]
Hints
Use a queue (BFS) to process nodes level by level.
Track the number of nodes at each level before processing.
Consider using an array with index tracking or a linked list for the queue.
Binary Tree Level Order Traversal
Return the node values of a binary tree level by level from left to right.