It may mean that the way you load the binary tree doesn't preserve the correct order of operations.
I don't think you desired output: AB*CDE^^/
is right. Shouldn't it be: AB*CD^E^/
Have you...
Type: Posts; User: Norm
It may mean that the way you load the binary tree doesn't preserve the correct order of operations.
I don't think you desired output: AB*CDE^^/
is right. Shouldn't it be: AB*CD^E^/
Have you...
then (C^D^E)
would be: (C^(D^E))
What is the ^ operator?
What is the algorithm for transiting in post order? Does your code follow that algorithm?
The code executes ok now. Do you have a design or algorithm for what the code is supposed to do?
I don't see any comments that describe the logic of what it is supposed to do.
Without the...
It doesn't execute. I get this:
Error: Main method not found in class TestingBTN, please define the main method as:
If I can't compile the code I can't test it. If you want help post code that compiles and executes and shows the problem.
Please post the current version of the code that compiles, executes and shows the problem.
What is posted here now, does not compile without errors.
The posted code does not compile without errors. Correct the errors if you want anyone to help you test the code.
The compiler can not find a constructor in the class that has a matching argument list.
Either change the new statement so its args match the existing constructor's args
Or add a new constructor to...
Please copy the full text of the error message and paste it here. We need to see the full text to be able to know where and what the exact problem is.