BinaryTree.cpp
In this part of the assignment, we have provided a file calledBinaryTree.cppthat contains a basic implementation of a binary tree. Function headers (with usage details) are included inBinaryTree.h, and you need to fill in thebalanceFactors()function of theBinaryTreeclass. You may define your own helper functions inBinaryTree.hand implement them inBinaryTree.cpp, but they must beprivate. Do NOT change any of the methods that we provided!
BinaryTree.h
balanceFactors()
BinaryTree
private
We will not be checking for memory leaks, as we will be creating the dynamic objects, not you. We have provided a tester program,BinaryTreeTest, that will help you test your BinaryTree class.
BinaryTreeTest
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here