Java icon indicating copy to clipboard operation
Java copied to clipboard

Views in a Binary Tree

Open sujay31 opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. Different views of a Binary Tree (left view, right view, top view & bottom view)

Describe the solution you'd like Left & Right views can be obtained using level over traversal of the binary tree. Top & Bottom views can be obtained using level order traversal and horizontal distance with respect to the root node.

Describe alternatives you've considered All the views can be generated using recursion or iteration. Preferring iterative solution to prevent recursion call overhead.

Additional context Not Applicable

@siriak @yanglbme please assign this to me. I have created a pull request implementing this.

Please use the tag "hacktoberfest-accepted".

Pull request #3428 (link)

sujay31 avatar Oct 06 '22 21:10 sujay31

Hi. I can give the most optimal solution to find the views ( **top view , bottom view , left view and right view **) in a binary tree. please assign this issue to me.

sanglap-02 avatar Oct 07 '22 15:10 sanglap-02

Hello Sir , Can you assign this issue to me . I will give you a better solution and minimum time complexity for this issue to find all types of view in binary tree.

drashan14 avatar Oct 13 '22 02:10 drashan14

i want to do it

Mugdhashrivastava avatar Oct 25 '22 07:10 Mugdhashrivastava

Hello Sir, please assign this issue to me

HarshitaSingh828 avatar Oct 26 '22 14:10 HarshitaSingh828

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 09 '23 00:01 github-actions[bot]

Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions!

github-actions[bot] avatar Jan 16 '23 00:01 github-actions[bot]