Question: 2. Your buddy wrote add method for your BSTSet class using a loop-based (iterative) algorithm. All of the other code in the class was written

2. Your "buddy" wrote add method for your BSTSet class using a loop-based ("iterative") algorithm. All of the other code in the class was written using recursive algorithms. Your boss pointed out that if the add) method were also recursive the ability to read and debug the entire class would be greatly improved. Rewrite add) so that it uses recursion. public class BSTSet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
