Binary Tree Level-Order Traversal

Given the root of a binary tree, return its node values in level-order traversal order. Values from each level must be grouped into a separate array.

Input Format

One JSON array representing the ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: