Given the root of a binary tree, return the level order traversal of its nodes' values. (i.e., from left to right, level by level).
A binary tree level order traversal visits all nodes at depth d before visiting nodes at depth d+1.
This is the most fundamental BFS problem - it directly implements the core concept of exploring a tree level by level using a queue.
root = [3,9,20,null,null,15,7][[3],[9,20],[15,7]]root = [1][[1]]root = [][]The number of nodes in the tree is in the range [0, 2000]-1000 <= Node.val <= 1000Click "Run" to execute your code against test cases
Socratic guidance - I'll ask questions, not give answers