Editorial in java

Can I get the editorial in java? and I am not able to input the tree according to the input?
Please help

Hi @indrajeetbhattacharya5,you will be provided the editorial once it is made.Until then you can try to convert the logic in java.See to input it is just level order so you 1 will have roots 2 and 3 ,2 will have roots 4 and 5,3 will have roots 6 and -1 and similarly -1 for the rest.Now during output you will see 4,2,6,3 as 5 will come under 1 and 6 will overlapp 5 when you will make tree .

ok got it for the answer

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.