markandey007 / DSA_CODES

follow must before pr then i will check and merge ur pr
14 stars 84 forks source link

Bottom View of Binary Tree #92

Open Shweta2024 opened 2 years ago

Shweta2024 commented 2 years ago

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.

Shweta2024 commented 2 years ago

@markandey007 sir can you please assign this issue to me?