Given the root of a binary tree, return the zigzag level order traversal of its nodes' values — left to right for level 0, right to left for level 1, then alternating for each subsequent level.
Input / output
root: TreeNode (JSON test fixture uses a LeetCode-style level-order array such as [3,9,20,null,null,15,7], with null for missing children)int[][]Can you do this in one BFS pass without calling reverse() on every other level, by placing each value directly into its final index for that level?