https://hack.codingblocks.com/app/practice/2/925/problem how to take input i am having problem?
Print all leaf nodes
hi @tusharjha9835 this link is accessible to you only, please share the hackerblocks link of the problem, or share the description by copy pasting it here or taking a screenshot
Binary Trees – Print All Leaf Nodes this is the question
@tusharjha9835 please share the description/hackerblocks link…how can i know the entire question just by its name?
input
1
2 3
4 5
6 7
-1 -1
-1 -1
-1 -1
-1 -1
output
4 5 6 7
hi @tusharjha9835 the level order traversal is given.
You can rewrite it like this for better understanding
1
2 3
4 5 6 7
-1 - 1 -1 - 1 -1 - 1 -1 - 1
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.