|
Assignment 5 |
As we discussed in class, your assignment is to complete writing a function to balance a binary search tree. This function requires 4 steps:
Your job is to write the function for step 4. It should be recursive and it should use the technique we discussed in class.
The program balancebst.cpp contains the code for steps 1, 2, and 3 along with a main function to test it all. Modify that program by adding the function bst_copyFromArray.