please comment at the line where mistake is there …please correct my code i don’t want any other code …
What's wrong with the following code
Change the name of BinaryTree class to Main.
you can see this.
try for this input
20 8 22 5 3 4 25 -1 -1 10 14 -1 -1 -1 -1 -1 -1 -1 -1
its correct output is : 5 10 4 14 25
And Your Code’s output is: 5 10 4 22 25