for the above question : dividing the tree into equal parts
is not giving correct answer for all inputs what is the mistake?
The tree question
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