Interview Coder drill
Interview Coder drill
Interview Coder drill
20:00
Given level-order tree values where null means no node, print each tree level left to right. Join values in a level with spaces and join levels with |.
Example 1
Input: root = [3,9,20,null,null,15,7]
Output: 3|9 20|15 7
Each level is emitted in breadth-first order.
Constraints
Capture your plan, then rate how clearly you recalled it before submitting.