Did you compile and test it?
Were there compiler errors? Then it is not correct
Did it produce the correct answer when executed? Then it could be correct.
Also posted at...
Type: Posts; User: Norm
Did you compile and test it?
Were there compiler errors? Then it is not correct
Did it produce the correct answer when executed? Then it could be correct.
Also posted at...
How does the code do a "search"? Break that down into steps.
What progress have you made in designing the methods? Do you have a list of the steps each should do?
First you need to make a design for what the method should do. What are the simple steps that the method needs to do to solve its problem? When you get the list of steps for the method, then work on...
How can the code be compiled and executed for testing?
Both those methods are empty. What are the steps each method must take to do its job?
That method could walk the tree and count.
Same...
What are those two methods supposed to do?
How can the code be compiled and executed for testing? It needs import statements and a main() method.
The code needs to be properly formatted. There...