Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary Tree : Nodes without sibling #58

Open
purnima143 opened this issue Jan 8, 2021 · 4 comments
Open

Binary Tree : Nodes without sibling #58

purnima143 opened this issue Jan 8, 2021 · 4 comments

Comments

@purnima143
Copy link

For a given Binary Tree of type integer, print all the nodes without any siblings.

The first and the only line of input will contain the node data, all separated by a single space. Since -1 is used as an indication of whether the left or right node data exist for root, it will not be a part of the node data.

Input Sample

2 4 5 6 -1 -1 7 20 30 80 90 -1 8 9 -1 -1 -1 -1 -1 -1 -1 -1 -1

Output Sample

6 8 7 9

image

@purnima143
Copy link
Author

@Abhijit2505 Can I work on this?

@Abhijit2505
Copy link
Member

@purnima143 please get started

@vilsijain
Copy link

can i do this @Abhijit2505

@ravikr126
Copy link
Contributor

@Abhijit2505 pls assign me this issue, I can do this in C++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants