Problem 429 · Medium

N-ary Tree Level Order Traversal

Return the values of an N-ary tree grouped by level, from the root downward. The visual draws each level as a row and fills it left to right.

Open the interactive visualisation