Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

#24 Tree Width with Level Width #27

Open
Labels
enhancementNew feature or request
@somekindofwallflower

Description

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

      AltStyle によって変換されたページ (->オリジナル) /