
) Include a method that will multiply by three every node of the tree: public void triple() { ... } For example, the tree
t = 3
/ \
/ \
4 5
/ \ / \
6 7 8 9
after doing t.triple(); should become 9 / \ / \ 12 15 / \ / \ 18 21 24 27 print("code sample");
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.