Question: Write a method in the BinarySearchTree java to display all of the root to leaves paths. The signature of the method will be as follows:

Write a method in the BinarySearchTree java to display all of the root to leaves paths. The signature of the method will be as follows: public void print Paths each path on a separate line where info on each node is separated by comma. Ex: For the BST below, the paths would be as follows: 5, 4,11,7 5, 4, 11,2 5, 8, 13 5, 8,4,1 )(The method should print 11 13 4 7 2 1 when testing each method, print a message to the screen such as Testing balance() method If a certain method does not work as expected then still include that method to your testing and print a message to the screen that method is not fully functional
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
