The tree question

for the above question : dividing the tree into equal parts
is not giving correct answer for all inputs what is the mistake?

@Rj.25
I am unable to find the question you are talking about. Can you send its link?

the question divide the tree into two halves and return the root nodes of both the halves

https://ide.codingblocks.com/s/333558 please check this id instead of the previous one as i have done some updations to the code in it but still it is not giving correct output

@Rj.25
Please send the link of the question. The debugging becomes easier.