Skip to content

Bottom View of Binary Tree #92

@Shweta2024

Description

@Shweta2024

Description

Given a binary tree, print the bottom view from left to right.
A node is included in the bottom view if it can be seen when we look at the tree from the bottom.

image

For the above tree, the bottom view is 5 10 3 14 25.
If there are multiple bottom-most nodes for a horizontal distance from root, then print the later one in level traversal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions