Skip to content

#24 Tree Width with Level Width  #27

Open
@somekindofwallflower

Description

@somekindofwallflower

Description
Given the root node of a tree, return
an array where each element is the width
of the tree at each level.

Example
Given:
0
/ |
1 2 3
| |
4 5
Answer: [1, 3, 2]

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions