Add a method to the BST class to write the data in a binary search tree to a text file. The method expects an opened text file object as an argument and outputs the tree’s data to the file in such a manner that the original shape of the tree is restored when the data are input. (Hint: One of the traversals accomplishes this.)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here