Example 1

Example 2

The height of the n-ary tree is less than or equal to 1000The total number of nodes is between [0, 104]Example 1

Example 2

The height of the n-ary tree is less than or equal to 1000The total number of nodes is between [0, 104]